[e988c2]: / tests / functional / test_graph_query.py

Download this file

23 lines (17 with data), 512 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
import shutil
from pathlib import Path
import pytest
FIXTURES_PATH = Path(__file__).parents[1] / "fixtures" / "good_definition_files"
@pytest.mark.skipif(
shutil.which("dot") is None,
reason="Graphing requires Graphviz library",
)
def test_graph_query(call_cli, tmp_path): # pragma: no cover
output_file = tmp_path / "query.svg"
call_cli(
"graph-query",
FIXTURES_PATH / "dataset_definition.py",
"--output",
output_file,
)
assert output_file.exists()