Fixed black

This commit is contained in:
Jules Lasne (jlasne - seluj78) 2020-10-14 10:40:59 +02:00
parent 61b0f6d746
commit 09e3ed6391

View File

@ -100,7 +100,7 @@ class TestPotodoCLI:
"- excluded.po 1 / 2 ( 50.0% translated)"
not in output
)
def test_potodo_counts(self):
output = check_output(["potodo", "--counts"]).decode("utf-8")
output_short = check_output(["potodo", "-c"]).decode("utf-8")
@ -111,11 +111,18 @@ 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
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 "- file1.po 2 to do, including 1 fuzzies." not in output
assert (
"- excluded.po 1 / 2 ( 50.0% translated)" 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