Skip to content

Commit 586e6e4

Browse files
committed
add test for tags table
1 parent dd4ec60 commit 586e6e4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

paths_cli/tests/commands/test_contents.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_contents(tps_fixture):
4141
for truth, beauty in zip(expected, results.output.split('\n')):
4242
assert truth == beauty
4343

44-
@pytest.mark.parametrize('table', ['volumes', 'trajectories'])
44+
@pytest.mark.parametrize('table', ['volumes', 'trajectories', 'tags'])
4545
def test_contents_table(tps_fixture, table):
4646
scheme, network, engine, init_conds = tps_fixture
4747
runner = CliRunner()
@@ -63,7 +63,13 @@ def test_contents_table(tps_fixture, table):
6363
f"Storage @ '{cwd}/setup.nc'",
6464
"trajectories: 1 unnamed item",
6565
""
66-
]
66+
],
67+
'tags': [
68+
f"Storage @ '{cwd}/setup.nc'",
69+
"tags: 1 item",
70+
"* initial_conditions",
71+
""
72+
],
6773
}[table]
6874
assert results.output.split("\n") == expected
6975
assert results.exit_code == 0

0 commit comments

Comments
 (0)