Changeset View
Changeset View
Standalone View
Standalone View
swh/graph/tests/test_cli.py
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | with TemporaryDirectory(suffix=".swh-graph-test") as tmpdir: | ||||
tmpdir, | tmpdir, | ||||
"--graph-name", | "--graph-name", | ||||
"example", | "example", | ||||
], | ], | ||||
) | ) | ||||
assert result.exit_code == 0, result | assert result.exit_code == 0, result | ||||
properties = read_properties(Path(tmpdir) / "example.properties") | properties = read_properties(Path(tmpdir) / "example.properties") | ||||
assert int(properties["nodes"]) == 21 | assert int(properties["nodes"]) == 24 | ||||
assert int(properties["arcs"]) == 23 | assert int(properties["arcs"]) == 28 |