Skip to content

Commit

Permalink
Move options
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait committed Nov 13, 2024
1 parent 8466b6c commit 2e5d8a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,6 @@ def pytest_addoption(parser):
help="Collect performance report for tests",
)

parser.addoption(
"--memray",
action="store",
default="scheduler",
help="Memray profiles to collect: scheduler or none",
choices=("scheduler", "none"),
)

parser.addoption(
"--py-spy",
action="store",
default="none",
help="py-spy profiles to collect: scheduler, workers, all, or none",
choices=("scheduler", "workers", "all", "none"),
)


def pytest_sessionfinish(session, exitstatus):
# https://github.com/pytest-dev/pytest/issues/2393
Expand Down
16 changes: 16 additions & 0 deletions tests/geospatial/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ def pytest_addoption(parser):
help="Scale to run. Either 'small' or 'large'",
)

parser.addoption(
"--memray",
action="store",
default="scheduler",
help="Memray profiles to collect: scheduler or none",
choices=("scheduler", "none"),
)

parser.addoption(
"--py-spy",
action="store",
default="none",
help="py-spy profiles to collect: scheduler, workers, all, or none",
choices=("scheduler", "workers", "all", "none"),
)


@pytest.fixture(scope="session")
def scale(request):
Expand Down

0 comments on commit 2e5d8a8

Please sign in to comment.