We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4a227 commit eae39c3Copy full SHA for eae39c3
rechnung/tests/test_cli.py
@@ -111,3 +111,12 @@ def test_invoice_create(cli_test_data_path):
111
assert invoice_data["total_vat"] == 7.74
112
assert invoice_data["total_gross"] == 48.45
113
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