Skip to content

Commit

Permalink
Increased coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vint21h committed Feb 27, 2020
1 parent 93780bc commit 15663dd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/management/commands/test_po-to-xls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def tearDownClass(cls):
"""

os.remove("po2xls/locale/uk/LC_MESSAGES/django.xls")
os.remove("po2xls/locale/en/LC_MESSAGES/django.xls")

super().tearDownClass()

Expand All @@ -43,3 +44,14 @@ def test_convert(self):
self.assertTrue(
expr=pathlib.Path("po2xls/locale/uk/LC_MESSAGES/django.xls").exists()
)

def test_convert__all(self):
"""
convert method must write converted data to .xls files for all locales.
"""

Command().handle()

self.assertTrue(
expr=pathlib.Path("po2xls/locale/en/LC_MESSAGES/django.xls").exists()
)

0 comments on commit 15663dd

Please sign in to comment.