Skip to content

Commit

Permalink
removed None from project and topics filters
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Dec 2, 2024
1 parent 92a37e4 commit d7bfcf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def event_id():

class TestEventFilters:
project_names = [
(None),
([]),
(["demo_Big_Episodic"]),
(["demo_Big_Feature"]),
Expand All @@ -156,7 +155,6 @@ class TestEventFilters:
]

topics = [
(None),
([]),
(["entity.folder.attrib_changed"]),
(["entity.task.created", "entity.project.created"]),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit d7bfcf7

Please sign in to comment.