Skip to content

Commit

Permalink
change import for pytest skip
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-oleary committed Aug 14, 2024
1 parent 62178af commit 60211fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_emmv.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
"""Unit tests for the EMMV module."""

# pylint: disable=C0415

import sys
import unittest

import pytest

from emmv.examples.adtk_example import run as run_adtk_example
from emmv.examples.alibi_detect_example import run as run_alibi_detect_example
from emmv.examples.keras_example import run as run_keras_example
from emmv.examples.pycaret_example import run as run_pycaret_example
from emmv.examples.pyod_example import run as run_pyod_example
Expand All @@ -23,6 +24,8 @@ def test_adtk_example(self):
@pytest.mark.skipif(sys.version_info >= (3, 11), reason='Alibi/TF mismatch for Python 11+')
def test_alibi_detect_example(self):
"""Test the emmv_scores function with Alibi Detect."""
from emmv.examples.alibi_detect_example import run as run_alibi_detect_example # noqa: E402

run_alibi_detect_example()

def test_keras_example(self):
Expand Down

0 comments on commit 60211fc

Please sign in to comment.