Skip to content

Commit

Permalink
Type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Nov 19, 2024
1 parent a2c82bf commit 63d51d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ jobs:
- name: Run test suite
env:
# show timings of tests
PYTEST_ADDOPTS: "--durations=0"
PYTEST_ADDOPTS: "--durations=10"
run: |
aiida-mock-code || true
cd tests; pytest
pytest -s
docs:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions aiida_test_cache/mock_code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
# Load aiida's pytest fixtures
try:
# These new fixtures which use sqlite backend, introduced in aiida v2.6
# TODO: It's not clear what happens if the user than activates
# NOTE: It's not clear what happens if the user than activates
# the old fixtures as well.
import aiida.tools.pytest_fixtures
import aiida.tools.pytest_fixtures # type: ignore[import-not-found]
pytest_plugins = ['aiida.tools.pytest_fixtures']
except ImportError:
pytest_plugins = ['aiida.manage.tests.pytest_fixtures']
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ disable = [
]

[tool.pytest.ini_options]
addopts = '--durations-min=3 --strict-config --strict-markers -ra'
filterwarnings = []

[tool.yapf]
Expand Down

0 comments on commit 63d51d9

Please sign in to comment.