Skip to content

Commit

Permalink
skipping test in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
John Waller committed Oct 4, 2024
1 parent 6023abb commit 62bc311
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/test-occurrences-download_cancel.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
"""Tests for occurrences module - download_cancle methods"""
from pygbif import occurrences as occ
import vcr
import os
import pytest

@vcr.use_cassette(
"test/vcr_cassettes/test_download_cancel.yaml", filter_headers=["authorization"]
)
IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
print(IN_GITHUB_ACTIONS)

@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work well in Github Actions.")
@vcr.use_cassette("test/vcr_cassettes/test_download_cancel.yaml", filter_headers=["authorization"])
def test_download_cancel():
"occurrences.download_cancel - basic test"
name_key = "156780401" # for "Bear picornavirus 1"
Expand Down

0 comments on commit 62bc311

Please sign in to comment.