Skip to content

Commit

Permalink
register pytest marker programmatically
Browse files Browse the repository at this point in the history
  • Loading branch information
ntessore committed Nov 1, 2022
1 parent 5402deb commit cf063c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions python/healpix/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,8 @@ def base_pixel_vec(request):
y = np.array([a, a, -a, -a, 0, 1, 0, -1, a, a, -a, -a])
z = np.array([b, b, b, b, 0, 0, 0, 0, -b, -b, -b, -b])
return x, y, z


def pytest_configure(config):
config.addinivalue_line(
'markers', 'nest: mark test as using the NEST scheme')
5 changes: 0 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,3 @@ packages =
python_requires = >=3.6
install_requires =
numpy


[tool:pytest]
markers =
nest: test uses NEST scheme

0 comments on commit cf063c0

Please sign in to comment.