Skip to content

Commit

Permalink
Fix bug with running tests in ASDF from path outside asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Feb 20, 2023
1 parent 43a9f38 commit 7561d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions asdf/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from asdf.tests.httpserver import HTTPServer, RangeHTTPServer

collect_ignore = ["asdftypes.py", "fits_embed.py", "resolver.py"]


@pytest.fixture()
def httpserver(request):
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ open_files_ignore = ['test.fits', 'asdf.fits']
# which pytest trips over during collection:
filterwarnings = [
'error',
'ignore::asdf.exceptions.AsdfDeprecationWarning:asdf.asdftypes',
'ignore:numpy.ndarray size changed:RuntimeWarning',
'ignore:.*from astropy.io.misc.asdf.*subclasses the deprecated CustomType.*:asdf.exceptions.AsdfDeprecationWarning',
]
# Configuration for pytest-doctestplus
text_file_format = 'rst'
addopts = '--color=yes --doctest-rst --ignore=asdf/fits_embed.py --ignore=asdf/resolver.py'
addopts = '--color=yes --doctest-rst'

[tool.coverage.run]
omit = [
Expand Down

0 comments on commit 7561d34

Please sign in to comment.