diff --git a/tests/test_path_nodes.py b/tests/test_path_nodes.py index 14c4a11..6f68ce9 100644 --- a/tests/test_path_nodes.py +++ b/tests/test_path_nodes.py @@ -1,7 +1,6 @@ import os import pytest import platform -from pathlib import Path from src.basic_data_handling.path_nodes import ( PathJoin, PathAbspath, PathExists, PathIsFile, PathIsDir, PathGetSize, diff --git a/tests/test_regex_nodes.py b/tests/test_regex_nodes.py index ae8ec3c..ff35d42 100644 --- a/tests/test_regex_nodes.py +++ b/tests/test_regex_nodes.py @@ -27,38 +27,6 @@ def test_regex_search_groups_list(): assert node.search_groups(r"(\w+)", "word") == (["word"],) # Single group -def test_regex_search_groups_list(): - node = RegexSearchGroupsList() - assert node.search_groups(r"(foo)(bar)", "foobar") == (["foo", "bar"],) - assert node.search_groups(r"(test)(\d+)", "test123") == (["test", "123"],) - assert node.search_groups(r"(nothing)", "no match here") == ([],) # No match - assert node.search_groups(r"(\w+)", "word") == (["word"],) # Single group - - -def test_regex_search_groups_list(): - node = RegexSearchGroupsList() - assert node.search_groups(r"(foo)(bar)", "foobar") == (["foo", "bar"],) - assert node.search_groups(r"(test)(\d+)", "test123") == (["test", "123"],) - assert node.search_groups(r"(nothing)", "no match here") == ([],) # No match - assert node.search_groups(r"(\w+)", "word") == (["word"],) # Single group - - -def test_regex_search_groups_list(): - node = RegexSearchGroupsList() - assert node.search_groups(r"(foo)(bar)", "foobar") == (["foo", "bar"],) - assert node.search_groups(r"(test)(\d+)", "test123") == (["test", "123"],) - assert node.search_groups(r"(nothing)", "no match here") == ([],) # No match - assert node.search_groups(r"(\w+)", "word") == (["word"],) # Single group - - -def test_regex_search_groups_list(): - node = RegexSearchGroupsList() - assert node.search_groups(r"(foo)(bar)", "foobar") == (["foo", "bar"],) - assert node.search_groups(r"(test)(\d+)", "test123") == (["test", "123"],) - assert node.search_groups(r"(nothing)", "no match here") == ([],) # No match - assert node.search_groups(r"(\w+)", "word") == (["word"],) # Single group - - def test_regex_group_dict(): node = RegexGroupDict() pattern = r"(?P\w+)-(?P\d+)"