Skip to content

Commit

Permalink
Skip slow test for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt343 committed Sep 15, 2024
1 parent 3e2ebe9 commit 85d1bf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with unittest
run: |
python -m unittest discover -v -s ./src/tester
SKIP_SLOW=true python -m unittest discover -v -s ./src/tester
3 changes: 3 additions & 0 deletions src/tester/test_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from cleaner import Cleaner
from updater import Updater

SKIP_SLOW = os.getenv('SKIP_SLOW', 'false').lower().strip() == 'true'

def log(message, level='INFO'): # Provide message and info level (optional, defaulting to info)
# configure the logger
log = logging.getLogger(name="pid: " + str(os.getpid()))
Expand Down Expand Up @@ -252,6 +254,7 @@ def test_scrape_results_page(self,
#def scrape_case_data_pre2017()
#def scrape_case_data_post2017()

@unittest.skipIf(SKIP_SLOW, "slow")
def test_scrape_multiple_cases(self,
county = 'hays',
odyssey_version = 2003,
Expand Down

0 comments on commit 85d1bf7

Please sign in to comment.