Skip to content

Commit c170b4f

Browse files
Copilotjdkent
andauthored
Remove Schemathesis tests and dependencies (#1129)
* Initial plan * Remove Schemathesis tests and dependencies Co-authored-by: jdkent <[email protected]> * Delete store/backend/neurostore/tests/api/test_openapi.py --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jdkent <[email protected]> Co-authored-by: James Kent <[email protected]>
1 parent 26becc4 commit c170b4f

File tree

8 files changed

+0
-88
lines changed

8 files changed

+0
-88
lines changed

compose/backend/neurosynth_compose/tests/conftest.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import pathlib
88

99
from auth0.v3.authentication import GetToken
10-
import schemathesis
1110
import pytest
1211
from nimare.results import MetaResult
1312
import sqlalchemy as sa
@@ -44,21 +43,6 @@ def safe_teardown_session(self, exc):
4443

4544
DATA_PATH = pathlib.Path(__file__).parent.resolve() / "data"
4645

47-
48-
def pytest_addoption(parser):
49-
parser.addoption(
50-
"--schemathesis",
51-
action="store_true",
52-
default=False,
53-
help="Run schemathesis tests",
54-
)
55-
56-
57-
schemathesis_test = pytest.mark.skipif(
58-
"not config.getoption('--schemathesis')",
59-
reason="Only run when --schemathesis is given",
60-
)
61-
6246
"""
6347
Test fixtures for bypassing authentication
6448
"""
@@ -694,8 +678,3 @@ def neurostore_data(db, mock_add_users):
694678
pytest.skip(
695679
"neurostore.org is not responding as expected", allow_module_level=True
696680
)
697-
698-
699-
@pytest.fixture()
700-
def app_schema(app):
701-
return schemathesis.from_wsgi("/api/openapi.json", app)

compose/backend/neurosynth_compose/tests/schemathesis_api/__init__.py

Whitespace-only changes.

compose/backend/neurosynth_compose/tests/schemathesis_api/test_annotation.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

compose/backend/neurosynth_compose/tests/schemathesis_api/test_meta_analysis.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

compose/backend/neurosynth_compose/tests/schemathesis_api/test_specification.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

compose/backend/neurosynth_compose/tests/schemathesis_api/test_studyset.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

compose/backend/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ dev = [
4646
"flake8~=3.8",
4747
"pip-chill~=1.0",
4848
"wheel~=0.36",
49-
"schemathesis~=3.14",
5049
"pytest~=8.4"
5150
]
5251

store/backend/neurostore/tests/api/test_openapi.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)