mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 22:48:24 -04:00
try pytest-asyncio again
This commit is contained in:
@@ -90,6 +90,7 @@ moto = "*"
|
|||||||
pip-audit = "*"
|
pip-audit = "*"
|
||||||
pre-commit = "^4.2.0"
|
pre-commit = "^4.2.0"
|
||||||
pytest = "^8.3.2"
|
pytest = "^8.3.2"
|
||||||
|
pytest-asyncio = "^1.0.0"
|
||||||
pytest-env = "^1.1.3"
|
pytest-env = "^1.1.3"
|
||||||
pytest-mock = "^3.14.1"
|
pytest-mock = "^3.14.1"
|
||||||
pytest-playwright = "^0.7.0"
|
pytest-playwright = "^0.7.0"
|
||||||
@@ -99,6 +100,8 @@ requests-mock = "^1.11.0"
|
|||||||
vulture = "^2.14"
|
vulture = "^2.14"
|
||||||
poetry-dotenv-plugin = "^0.2.0"
|
poetry-dotenv-plugin = "^0.2.0"
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
asyncio_mode = "auto"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
|
|||||||
@@ -1744,6 +1744,7 @@ def test_can_create_email_template_with_emoji(
|
|||||||
)
|
)
|
||||||
assert mock_create_service_template.called is True
|
assert mock_create_service_template.called is True
|
||||||
|
|
||||||
|
|
||||||
# TODO FIX!
|
# TODO FIX!
|
||||||
# @pytest.mark.parametrize(
|
# @pytest.mark.parametrize(
|
||||||
# ("template_type", "expected_error"),
|
# ("template_type", "expected_error"),
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
import pytest
|
||||||
from playwright.sync_api import expect
|
from playwright.sync_api import expect
|
||||||
|
|
||||||
from tests.end_to_end.conftest import check_axe_report
|
from tests.end_to_end.conftest import check_axe_report
|
||||||
@@ -97,7 +98,8 @@ async def create_new_template(page):
|
|||||||
assert "Test message for e2e test" in page.content()
|
assert "Test message for e2e test" in page.content()
|
||||||
|
|
||||||
|
|
||||||
def test_create_new_template(end_to_end_context):
|
@pytest.mark.asyncio
|
||||||
|
async def test_create_new_template(end_to_end_context):
|
||||||
page = end_to_end_context.new_page()
|
page = end_to_end_context.new_page()
|
||||||
page.goto(f"{E2E_TEST_URI}/sign-in")
|
page.goto(f"{E2E_TEST_URI}/sign-in")
|
||||||
# Wait for the next page to fully load.
|
# Wait for the next page to fully load.
|
||||||
|
|||||||
Reference in New Issue
Block a user