Skip to content

Commit

Permalink
Improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed May 13, 2024
1 parent 9e31d84 commit da2a8e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ def test_pgettext(self):
self.assertEqualTypeToo('VohCTX1', self.translations.pgettext('foo',
'foo1'))

def test_pgettext_fallback(self):
fallback = self.translations._fallback
self.translations._fallback = support.NullTranslations()
assert self.translations.pgettext('foo', 'bar') == 'bar'
self.translations._fallback = fallback

def test_upgettext(self):
self.assertEqualTypeToo('Voh', self.translations.ugettext('foo'))
self.assertEqualTypeToo('VohCTX', self.translations.upgettext('foo',
Expand Down

0 comments on commit da2a8e4

Please sign in to comment.