test/more #9

Merged
jkuhl merged 10 commits from test/more into develop 2025-12-02 10:33:38 +01:00
Showing only changes of commit e81d10d08a - Show all commits

add simple test for listing ensembles and projects
All checks were successful
Pytest / pytest (3.12) (push) Successful in 42s
Pytest / pytest (3.13) (push) Successful in 45s
Pytest / pytest (3.14) (push) Successful in 46s

Justus Kuhlmann 2025-12-01 19:04:40 +01:00
Signed by: jkuhl
GPG key ID: 00ED992DD79B85A6

View file

@ -78,4 +78,14 @@ def test_init_db(tmp_path):
]
backlog_column_names = [col[1] for col in backlog_columns]
for expected_col in expected_backlog_columns:
assert expected_col in backlog_column_names
assert expected_col in backlog_column_names
def test_list(tmp_path):
dataset_path = tmp_path / "test_dataset"
result = runner.invoke(app, ["init", "--dataset", str(dataset_path)])
assert result.exit_code == 0
result = runner.invoke(app, ["list", "--dataset", str(dataset_path), "ensembles"])
assert result.exit_code == 0
result = runner.invoke(app, ["list", "--dataset", str(dataset_path), "projects"])
assert result.exit_code == 0