aboutsummaryrefslogtreecommitdiff
path: root/tests/http
diff options
context:
space:
mode:
authorMax Nanis2026-09-09 20:32:17 -0700
committerMax Nanis2026-09-09 20:32:17 -0700
commit832aecaddce80e312095ecdb572d7756eb9df5e9 (patch)
tree3f9b27bf285ef0648e22a1480ab213255d2cfee6 /tests/http
parente7e5b5f8bf81e78e417ecdb9dd6ab1616e722fa0 (diff)
downloadamt-jb-832aecaddce80e312095ecdb572d7756eb9df5e9.tar.gz
amt-jb-832aecaddce80e312095ecdb572d7756eb9df5e9.zip
Ruff auto fix, and requirements bump
Diffstat (limited to 'tests/http')
-rw-r--r--tests/http/test_auth.py4
-rw-r--r--tests/http/test_notifications.py11
-rw-r--r--tests/http/test_preview.py3
-rw-r--r--tests/http/test_work.py4
4 files changed, 11 insertions, 11 deletions
diff --git a/tests/http/test_auth.py b/tests/http/test_auth.py
index 02ac88a..ebda742 100644
--- a/tests/http/test_auth.py
+++ b/tests/http/test_auth.py
@@ -60,9 +60,7 @@ class TestAuth:
):
client = httpxclient
- res = await client.post(
- "/auth/magic-link/request", json={"email": email}
- )
+ res = await client.post("/auth/magic-link/request", json={"email": email})
d = res.json()
assert res.status_code == 200
assert d["magic_link"]
diff --git a/tests/http/test_notifications.py b/tests/http/test_notifications.py
index 508b236..60b94e6 100644
--- a/tests/http/test_notifications.py
+++ b/tests/http/test_notifications.py
@@ -1,14 +1,15 @@
-import pytest
import json
+from typing import Any
+from uuid import uuid4
+
+import pytest
import redis
-from typing import Dict, Any
from httpx import AsyncClient
-from uuid import uuid4
from jb.config import JB_EVENTS_STREAM, settings
+from jb.models.assignment import AssignmentStub
from jb.models.event import MTurkEvent
from jb.models.hit import Hit
-from jb.models.assignment import AssignmentStub
class TestNotifications:
@@ -55,7 +56,7 @@ class TestNotifications:
httpxclient: AsyncClient,
hit_record: Hit,
assignment_stub_record: AssignmentStub,
- mturk_event_body_record: Dict[str, Any],
+ mturk_event_body_record: dict[str, Any],
):
client = httpxclient
diff --git a/tests/http/test_preview.py b/tests/http/test_preview.py
index 467c63c..39a6f5b 100644
--- a/tests/http/test_preview.py
+++ b/tests/http/test_preview.py
@@ -3,8 +3,9 @@
import pytest
from httpx import AsyncClient
-from jb.models.hit import Hit
+
from jb.models.assignment import AssignmentStub
+from jb.models.hit import Hit
class TestPreview:
diff --git a/tests/http/test_work.py b/tests/http/test_work.py
index 66251f6..7f10b46 100644
--- a/tests/http/test_work.py
+++ b/tests/http/test_work.py
@@ -1,9 +1,9 @@
import pytest
from httpx import AsyncClient
-from jb.models.hit import Hit
-from jb.models.assignment import AssignmentStub
from jb.managers.assignment import AssignmentManager
+from jb.models.assignment import AssignmentStub
+from jb.models.hit import Hit
class TestWork: