Skip to content

Commit

Permalink
tests: skip visual debugging for win
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Jan 4, 2021
1 parent 804a193 commit 268d5b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_full_features.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
"""Full feature test cases for API."""

import os
import sys

import libpdf
from libpdf.models.figure import Figure
from libpdf.models.table import Table

import pytest

from tests.conftest import PDF_FULL_FEATURES, PDF_SMART_HEADER_FOOTER_DETECTION


Expand Down Expand Up @@ -210,6 +213,7 @@ def test_smart_header_footer_detection():
assert smart_objects.flattened.paragraphs[29].text == '4. Chapter test for footer'


@pytest.mark.skipif(sys.platform.startswith('win'), reason='ImageMagick not installed for Github windows-latest OS')
def test_visual_debug_include_elements(tmpdir):
"""Test visual debug include visualized elements."""
visual_debug_output_dir = os.path.join(tmpdir, 'visual_debug_libpdf')
Expand All @@ -232,6 +236,7 @@ def test_visual_debug_include_elements(tmpdir):
assert len(os.listdir(visual_debug_output_dir)) == 1


@pytest.mark.skipif(sys.platform.startswith('win'), reason='ImageMagick not installed for Github windows-latest OS')
def test_visual_debug_exclude_elements(tmpdir):
"""Test visual debug exclude visualized elements."""
visual_debug_output_dir = os.path.join(tmpdir, 'visual_debug_libpdf')
Expand Down

0 comments on commit 268d5b7

Please sign in to comment.