Skip to content

Commit

Permalink
Skip dot tests if not on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Aug 29, 2023
1 parent 2290aeb commit c8dcc17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions metakernel/magics/tests/test_dot_magic.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import sys

from metakernel.tests.utils import (get_kernel, get_log_text,
clear_log_text, EvalKernel)

import pytest

@pytest.mark.skipif(sys.platform != "linux", reason="Requires dot from grahviz")
def test_dot_magic_cell():
kernel = get_kernel(EvalKernel)
kernel.do_execute("""%%dot
Expand All @@ -12,6 +16,7 @@ def test_dot_magic_cell():
text = get_log_text(kernel)
assert "Display Data" in text, text

@pytest.mark.skipif(sys.platform != "linux", reason="Requires dot from grahviz")
def test_dot_magic_line():
kernel = get_kernel(EvalKernel)
kernel.do_execute("%dot graph A { a->b };")
Expand Down

0 comments on commit c8dcc17

Please sign in to comment.