Skip to content

Commit 13c478e

Browse files
committed
Fix more linter complaints
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 918b909 commit 13c478e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/e2e_tests/test_user_invite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
@pytest.mark.order(3)
1818
@pytest.mark.asyncio
1919
async def test_invite_and_accept_user(test_async_client):
20+
"""Test user invite flow: invite, accept, and login."""
2021
username = "invited_user"
2122
password = "test"
2223
email = "invited@kernelci.org"
@@ -69,4 +70,3 @@ async def test_invite_and_accept_user(test_async_client):
6970
)
7071
assert response.status_code == 200
7172
assert response.json().keys() == {"access_token", "token_type"}
72-

tests/unit_tests/test_events_handler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ def test_get_events_filter_by_ids(mock_db_find_by_attributes, test_client):
4343

4444

4545
def test_get_events_rejects_both_id_and_ids(test_client):
46+
"""GET /events rejects requests with both id and ids parameters."""
4647
resp = test_client.get("events?id=deadbeefdeadbeefdeadbeef&ids=deadbeefdeadbeefdeadbeef")
4748
assert resp.status_code == 400
4849

4950

5051
def test_get_events_rejects_invalid_id(test_client):
52+
"""GET /events rejects invalid ObjectId format."""
5153
resp = test_client.get("events?id=not-an-objectid")
5254
assert resp.status_code == 400
5355

@@ -66,6 +68,7 @@ def test_get_events_filter_by_node_id_alias(mock_db_find_by_attributes, test_cli
6668

6769

6870
def test_get_events_rejects_node_id_and_data_id(test_client):
71+
"""GET /events rejects requests with both node_id and data.id parameters."""
6972
resp = test_client.get(
7073
"events?node_id=693af4f5fee8383e92b6b0eb&data.id=693af4f5fee8383e92b6b0eb"
7174
)

0 commit comments

Comments
 (0)