Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions tests/e2e/test_client_e2e.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import time
from unittest.mock import Mock, patch

Expand All @@ -24,19 +25,21 @@ def test_list_nodes(self, e2e_client: Client):
"""
e2e_client.list_nodes()

@pytest.mark.skipif(
os.getenv("UE_ENVIRONMENT") == "prod",
reason="Mathematical Operators category is 'Basic' in prod until we deploy there",
)
def test_list_nodes_category(self, e2e_client: Client):
"""
Verify that nodes can be filtered by category.

Args:
e2e_client: A Client instance.
"""
respone = e2e_client.list_nodes(category="Basic")
response = e2e_client.list_nodes(category="Mathematical Operators")

# There should only be one node in the demo category
assert len(respone) == 1
assert respone[0]["category"] == "Basic"
assert respone[0]["id"] == "Add"
assert len(response) > 0
assert all(node["category"] == "Mathematical Operators" for node in response)

def test_queue_node(self, e2e_client: Client):
"""
Expand Down
Loading