Skip to content

Commit 6031451

Browse files
committed
Fix more linter complaints
Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
1 parent 6fb0fee commit 6031451

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)