Skip to content

Commit

Permalink
Mark functional tests so we can opt to skip them
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Jan 19, 2024
1 parent e5f155c commit c653afe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ lines-after-imports = 2
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "airlock.settings"

markers = [
"functional: marks functional (playwright) tests as (deselect with '-m \"not functional\"')",
]

[tool.coverage.run]
branch = true

Expand Down
4 changes: 4 additions & 0 deletions tests/functional/test_page.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import pytest
from playwright.sync_api import expect


pytestmark = pytest.mark.functional


def test_admin_page_can_load(page, live_server):
admin_url = f"{live_server.url}/admin"
page.goto(admin_url)
Expand Down

0 comments on commit c653afe

Please sign in to comment.