]> granicus.if.org Git - graphviz/commitdiff
tests: use 'gvtest.dot' to simplify a test case
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 16 Apr 2022 20:57:23 +0000 (13:57 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 17 Apr 2022 22:58:09 +0000 (15:58 -0700)
tests/regression_tests/large/test_large_graphs.py

index 70f27a2974f96ec852be40e23646607e38dac884..548f6af48d5c98cbd54749a6889a6571db09b178 100644 (file)
@@ -6,8 +6,12 @@ import os
 from pathlib import Path
 import platform
 import subprocess
+import sys
 import pytest
 
+sys.path.append(os.path.join(os.path.dirname(__file__), "../rtest"))
+from gvtest import dot #pylint: disable=wrong-import-position
+
 @pytest.mark.skipif(platform.system() == "Windows" and
                     platform.architecture()[0] == "32bit",
                     reason="https://gitlab.com/graphviz/graphviz/-/issues/1710")
@@ -40,6 +44,4 @@ def test_wide_clusters():
   """
   A simple regression test for https://gitlab.com/graphviz/graphviz/-/issues/2080#
   """
-  subprocess.check_call([
-    "dot", "-Tsvg", "-O", os.devnull, Path(__file__).parent / "wide_clusters"
-  ])
+  dot("svg", Path(__file__).parent / "wide_clusters")