From 0f545146c8dc9f1955e7e8b9c727312e283ca681 Mon Sep 17 00:00:00 2001 From: StableLlama Date: Mon, 9 Jun 2025 15:21:34 +0200 Subject: [PATCH] Fix code duplication --- tests/test_data_list_nodes.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/tests/test_data_list_nodes.py b/tests/test_data_list_nodes.py index da4a205..6560716 100644 --- a/tests/test_data_list_nodes.py +++ b/tests/test_data_list_nodes.py @@ -368,26 +368,3 @@ def test_range(): # Test with ValueError (step cannot be zero) with pytest.raises(ValueError, match="Step cannot be zero"): node.create_range(start=0, stop=5, step=0) - - -def test_to_list(): - node = DataListToList() - # Test with regular list - assert node.convert(list=[1, 2, 3]) == ([1, 2, 3],) - # Test with empty list - assert node.convert(list=[]) == ([],) - # Test with mixed types - assert node.convert(list=[1, "two", 3.0]) == ([1, "two", 3.0],) - - -def test_to_set(): - node = DataListToSet() - # Test with regular list - assert node.convert(list=[1, 2, 3]) == ({1, 2, 3},) - # Test with empty list - assert node.convert(list=[]) == (set(),) - # Test with duplicates - assert node.convert(list=[1, 2, 1, 3, 2]) == ({1, 2, 3},) - # Test with mixed types (that can be in a set) - assert node.convert(list=[1, "two", 3.0]) == ({1, "two", 3.0},) -