Added the last missing options for the cli tests

This commit is contained in:
Jules Lasne (jlasne - seluj78) 2020-10-14 10:20:38 +02:00
parent f5c83f5334
commit 15ec1258f7

View File

@ -100,8 +100,6 @@ class TestPotodoCLI:
"- excluded.po 1 / 2 ( 50.0% translated)"
not in output
)
# TODO: Test hide_reserved, offline options
def test_potodo_counts(self):
output = check_output(["potodo", "--counts"]).decode("utf-8")
@ -114,3 +112,12 @@ class TestPotodoCLI:
assert "- file4.po 1 to do" in output
assert "# repository (16.50% done)" in output
assert "- file1.po 2 to do, including 1 fuzzies." in output
def test_potodo_exclude_fuzzy(self):
output = check_output(["potodo", "--exclude-fuzzy"]).decode("utf-8")
assert "- excluded.po 1 / 2 ( 50.0% translated)" in output
assert "- file4.po 1 to do" in output
assert "# repository (16.50% done)" in output
assert "- file1.po 2 to do, including 1 fuzzies." not in output
# TODO: Test hide_reserved, offline options, only_reserved, exclude_reserved, show_reservation_dates