We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93543fb commit 0671cc0Copy full SHA for 0671cc0
rechnung/tests/test_cli.py
@@ -35,6 +35,21 @@ def initialized_path(tmp_path_factory):
35
return tmp_path
36
37
38
+@pytest.fixture(scope="session")
39
+def test_data_path(tmp_path_factory):
40
+ """
41
+ Returns a path where rechnung is initialized in order to verify correct creation
42
+ of directories and files
43
44
+ tmp_path = tmp_path_factory.getbasetemp() / "rechnung_initialized"
45
+ tmp_path.mkdir()
46
+ cli.cwd = tmp_path
47
+ runner = CliRunner()
48
+ result = runner.invoke(cli.cli1, ["init"])
49
+ return tmp_path
50
+
51
52
53
def test_init_exit_code(cli_path):
54
"""
55
Tests if the initialization function returns the correct exit codes.
0 commit comments