try adding pytest-asyncio

This commit is contained in:
Kenneth Kehl
2025-06-04 10:45:38 -07:00
parent 09cf2098af
commit 1981c02207
3 changed files with 22 additions and 2 deletions

21
poetry.lock generated
View File

@@ -2930,6 +2930,25 @@ pygments = ">=2.7.2"
[package.extras]
dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "requests", "setuptools", "xmlschema"]
[[package]]
name = "pytest-asyncio"
version = "1.0.0"
description = "Pytest support for asyncio"
optional = false
python-versions = ">=3.9"
groups = ["dev"]
files = [
{file = "pytest_asyncio-1.0.0-py3-none-any.whl", hash = "sha256:4f024da9f1ef945e680dc68610b52550e36590a67fd31bb3b4943979a1f90ef3"},
{file = "pytest_asyncio-1.0.0.tar.gz", hash = "sha256:d15463d13f4456e1ead2594520216b225a16f781e144f8fdf6c5bb4667c48b3f"},
]
[package.dependencies]
pytest = ">=8.2,<9"
[package.extras]
docs = ["sphinx (>=5.3)", "sphinx-rtd-theme (>=1)"]
testing = ["coverage (>=6.2)", "hypothesis (>=5.7.1)"]
[[package]]
name = "pytest-base-url"
version = "2.1.0"
@@ -4161,4 +4180,4 @@ cffi = ["cffi (>=1.11)"]
[metadata]
lock-version = "2.1"
python-versions = "^3.13.2"
content-hash = "f69571c448f4a79764e0fc8fcbab04ac565fa81928ac374c4367082ac1b8fbf5"
content-hash = "6f46a88429bc936332066f02ea95f2c9df13137e858678f3b432fff4b3aec3b2"

View File

@@ -90,6 +90,7 @@ moto = "*"
pip-audit = "*"
pre-commit = "^4.2.0"
pytest = "^8.3.2"
pytest-asyncio = "^1.0.0"
pytest-env = "^1.1.3"
pytest-mock = "^3.14.1"
pytest-playwright = "^0.7.0"

View File

@@ -10,7 +10,7 @@ from tests.end_to_end.conftest import check_axe_report
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
def create_new_template(page):
async def create_new_template(page):
current_service_link = page.get_by_text("Current service")
expect(current_service_link).to_be_visible()