Skip to content

Commit eae39c3

Browse files
committed
test cli invoice render
1 parent 6b4a227 commit eae39c3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rechnung/tests/test_cli.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,12 @@ def test_invoice_create(cli_test_data_path):
111111
assert invoice_data["total_vat"] == 7.74
112112
assert invoice_data["total_gross"] == 48.45
113113

114+
def test_invoice_render(cli_test_data_path):
115+
cli1, path = cli_test_data_path
116+
s = settings.get_settings_from_cwd(path)
117+
runner = CliRunner()
118+
result = runner.invoke(cli1, ["render"])
119+
assert path.joinpath(s.invoices_dir, "1000", "1000.2019.10.pdf").is_file()
120+
assert not path.joinpath(s.invoices_dir, "1001", "1001.2019.10.pdf").is_file()
121+
assert path.joinpath(s.invoices_dir, "1002", "1002.2019.10.pdf").is_file()
122+

0 commit comments

Comments
 (0)