Skip to content

Commit

Permalink
fix: jupyter notebook tests, deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
a.pirogov committed Aug 21, 2023
1 parent ef538db commit 2842ffa
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/scripts/coverage_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def on_pre_build(config):
"""Generate coverage report if it is missing and create a badge."""
if not Path("htmlcov").is_dir() or not Path(".coverage").is_file():
log.info("Missing htmlcov or .coverage, running pytest to collect.")
pytest.main(["--cov", "--cov-report=html"])
pytest.main(["--cov=src", "--cov-report=html"])
else:
log.info("Using existing coverage data.")

Expand Down
27 changes: 14 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ testbook = "^0.4.2"

[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.2"
mkdocstrings = {extras = ["python"], version = "^0.21.2"}
mkdocstrings = {extras = ["python"], version = "^0.22.0"}
mkdocs-material = "^9.1.6"
mkdocs-gen-files = "^0.4.0"
mkdocs-gen-files = "^0.5.0"
mkdocs-literate-nav = "^0.6.0"
mkdocs-section-index = "^0.3.5"
mkdocs-macros-plugin = "^0.7.0"
markdown-include = "^0.8.1"
pymdown-extensions = "^10.0"
markdown-exec = {extras = ["ansi"], version = "^1.6.0"}
mkdocs-coverage = "^0.2.7"
mkdocs-coverage = "^1.0.0"
mike = "^1.1.2"
anybadge = "^1.14.0"
black = "^23.7.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/zz_docs/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from testbook import testbook


@pytest.fixture(scope="module")
@pytest.fixture(scope="function")
def nb_cwd():
"""Fixture to change CWD to location of notebooks."""
old = os.getcwd()
Expand Down

0 comments on commit 2842ffa

Please sign in to comment.