From d7bfcf7c77ab2c1ca735aeb22b8bdba16369224d Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:42:52 +0100 Subject: [PATCH] removed None from project and topics filters --- tests/conftest.py | 2 -- tests/test_server.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 78a6038fe..bac4f9c03 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -141,7 +141,6 @@ def event_id(): class TestEventFilters: project_names = [ - (None), ([]), (["demo_Big_Episodic"]), (["demo_Big_Feature"]), @@ -156,7 +155,6 @@ class TestEventFilters: ] topics = [ - (None), ([]), (["entity.folder.attrib_changed"]), (["entity.task.created", "entity.project.created"]), diff --git a/tests/test_server.py b/tests/test_server.py index f697ed955..e3ed8b426 100644 --- a/tests/test_server.py +++ b/tests/test_server.py @@ -180,7 +180,7 @@ def test_get_events_project_name(project_names): assert item.get("project") in project_names # test if the legths are equal - assert project_names is None or len(res) == sum(len( + assert len(res) == sum(len( list(get_events( project_names=[project_name] )) or []