8000 skip in jep · scijava/scyjava@192be35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 192be35

Browse files
committed
skip in jep
1 parent 51937b5 commit 192be35

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_stubgen.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@
55
from unittest.mock import patch
66

77
import jpype
8+
import pytest
89

910
import scyjava
1011
from scyjava._stubs import _cli
1112

1213
if TYPE_CHECKING:
1314
from pathlib import Path
1415

15-
import pytest
16-
1716

17+
@pytest.mark.skipif(
18+
scyjava.config.mode != scyjava.config.Mode.JPYPE,
19+
reason="Stubgen not supported in JEP",
20+
)
1821
def test_stubgen(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:
1922
# run the stubgen command as if it was run from the command line
2023
monkeypatch.setattr(

0 commit comments

Comments
 (0)
0