Skip to content

Commit

Permalink
CI: restore pytest config and options ignored since #2079
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Aug 1, 2023
1 parent f8e0721 commit aa1ec00
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/seismic/elastic/elastic_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_elastic(dtype):
assert np.isclose(norm(rec2), 0.627606, atol=1e-3, rtol=0)


@pytest.mark.parametrize('shape', [(101,), (51, 51), (16, 16, 16)])
@pytest.mark.parametrize('shape', [(51, 51), (16, 16, 16)])
def test_elastic_stability(shape):
spacing = tuple([20]*len(shape))
_, _, _, [rec1, rec2, v, tau] = run(shape=shape, spacing=spacing, tn=20000.0, nbl=0)
Expand Down
2 changes: 1 addition & 1 deletion examples/seismic/viscoelastic/viscoelastic_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_viscoelastic(dtype):
assert np.isclose(norm(rec2), 0.312461, atol=1e-3, rtol=0)


@pytest.mark.parametrize('shape', [(101,), (51, 51), (16, 16, 16)])
@pytest.mark.parametrize('shape', [(51, 51), (16, 16, 16)])
def test_viscoelastic_stability(shape):
spacing = tuple([20]*len(shape))
_, _, _, [rec1, rec2, v, tau] = run(shape=shape, spacing=spacing, tn=20000.0, nbl=0)
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[pytest]
python_files = test_*.py *_example.py example_*.py
addopts = --durations=20 --maxfail=5
filterwarnings =
ignore::pytest.PytestCacheWarning
ignore::pytest.PytestReturnNotNoneWarning
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ max-line-length = 90
ignore = F403,E226,E731,E275,W503,F405,E722,E741,W504,W605
exclude = .github

[tool:pytest]
python_files = test_*.py *_example.py example_*.py
addopts = --durations=20 --maxfail=5

[versioneer]
VCS = git
style = pep440
Expand Down

0 comments on commit aa1ec00

Please sign in to comment.