Skip to content

Commit

Permalink
not_safe_parallel test marker
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Aug 14, 2024
1 parent b2bf9a3 commit 1a1bf91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ 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" -sv --full-trace --log-cli-level=DEBUG
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
- 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
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 -m "not_safe_parallel" -sv --full-trace --log-cli-level=DEBUG
1 change: 1 addition & 0 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ 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 1a1bf91

Please sign in to comment.