Skip to content

Commit 0671cc0

Browse files
committed
wip
1 parent 93543fb commit 0671cc0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

rechnung/tests/test_cli.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ def initialized_path(tmp_path_factory):
3535
return tmp_path
3636

3737

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+
3853
def test_init_exit_code(cli_path):
3954
"""
4055
Tests if the initialization function returns the correct exit codes.

0 commit comments

Comments
 (0)