Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add test for tags table
  • Loading branch information
dwhswenson committed Dec 9, 2020
commit 586e6e4d2316784a0304bf6c56b5caaa5e55a2f2
10 changes: 8 additions & 2 deletions paths_cli/tests/commands/test_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def test_contents(tps_fixture):
for truth, beauty in zip(expected, results.output.split('\n')):
assert truth == beauty

@pytest.mark.parametrize('table', ['volumes', 'trajectories'])
@pytest.mark.parametrize('table', ['volumes', 'trajectories', 'tags'])
def test_contents_table(tps_fixture, table):
scheme, network, engine, init_conds = tps_fixture
runner = CliRunner()
Expand All @@ -63,7 +63,13 @@ def test_contents_table(tps_fixture, table):
f"Storage @ '{cwd}/setup.nc'",
"trajectories: 1 unnamed item",
""
]
],
'tags': [
f"Storage @ '{cwd}/setup.nc'",
"tags: 1 item",
"* initial_conditions",
""
],
}[table]
assert results.output.split("\n") == expected
assert results.exit_code == 0
Expand Down