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

This commit is contained in:
Justus Kuhlmann 2025-12-01 19:04:40 +01:00
commit e81d10d08a
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