Skip to content

Commit

Permalink
freezing pytest-httpserver version
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Aug 14, 2024
1 parent cd8e20b commit 52c38a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ jobs:
- name: Test with pytest
run: |
curl -o $ODA_ONTOLOGY_PATH https://raw.githubusercontent.com/oda-hub/ontology/ecdf2a61f87aac13ae7a96c0f3dad960312adae4/ontology.ttl
python -m coverage run --source=dispatcher_plugin_nb2workflow -m pytest tests -m "not fullstack and not not_safe_parallel" -sv --full-trace --log-cli-level=DEBUG
python -m coverage run --source=dispatcher_plugin_nb2workflow -m pytest tests -m "not fullstack" -sv --full-trace --log-cli-level=DEBUG
- name: Test full stack
run: |
python -m coverage run --source=dispatcher_plugin_nb2workflow -m pytest tests -m "fullstack" -sv --full-trace --log-cli-level=DEBUG
- name: Test not safe parallel
run: |
python -m coverage run --source=dispatcher_plugin_nb2workflow -m pytest tests -n 1 -m "not_safe_parallel" -sv --full-trace --log-cli-level=DEBUG
python -m coverage run --source=dispatcher_plugin_nb2workflow -m pytest tests -m "fullstack" -sv --full-trace --log-cli-level=DEBUG
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ install_requires =
[options.extras_require]
test =
pytest
pytest-xdist
psutil
pytest-httpserver
pytest-httpserver==1.0.8
pytest-xprocess
nb2workflow
1 change: 0 additions & 1 deletion tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ def test_instrument_products(dispatcher_live_fixture, mock_backend):
'lightcurve': 'lightcurve_query',
'table': 'table_query'}

@pytest.mark.not_safe_parallel
def test_instrument_backend_unavailable(dispatcher_live_fixture):
# current behaviour is to have instrument with no products, could be changed in the future
server = dispatcher_live_fixture
Expand Down

0 comments on commit 52c38a3

Please sign in to comment.