Skip to content

Commit 4d731f9

Browse files
authored
Merge pull request #395 from bayesflow-org/test-examples
Run linter for test examples PR
2 parents 387abe8 + db6a1b9 commit 4d731f9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

tests/test_examples/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
21
import pytest
32

43

54
@pytest.fixture(scope="session")
65
def examples_path():
76
from pathlib import Path
7+
88
return Path(__file__).parents[2] / "examples"

tests/test_examples/test_examples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import pytest
32

43
from tests.utils import run_notebook

tests/utils/jupyter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
21
import nbformat
32
from nbconvert.preprocessors import ExecutePreprocessor
43

4+
55
def run_notebook(path):
66
with open(str(path)) as f:
77
nb = nbformat.read(f, nbformat.NO_CONVERT)

0 commit comments

Comments
 (0)