Skip to content

Commit

Permalink
Introduce pytest mark for really slow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lunkwill42 committed Sep 20, 2024
1 parent 41eaad0 commit 8735bde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/web/crawler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ def webcrawler(gunicorn, web_target_url, web_admin_username, web_admin_password)
#


@pytest.mark.slow
def test_all_links_should_be_reachable(webcrawler):
for page in webcrawler.crawl():
if page.response != 200:
Expand All @@ -248,6 +249,7 @@ def _content_as_string(content):
return content.decode('utf-8')


@pytest.mark.slow
def test_page_should_be_valid_html(webcrawler):
try:
tidy_document("")
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ basepython = python3.9
addopts = --failed-first
markers =
twisted: marks tests as needing twisted async to run
slow: potentially really slow tests

[gh-actions]
python =
Expand Down

0 comments on commit 8735bde

Please sign in to comment.