From 6c553eccf8b5bc8e0e18d889e3197d342cab47e9 Mon Sep 17 00:00:00 2001 From: StableLlama Date: Sun, 18 May 2025 01:50:16 +0200 Subject: [PATCH] Fix tests --- tests/test_path_nodes.py | 1 - tests/test_regex_nodes.py | 32 -------------------------------- 2 files changed, 33 deletions(-) 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+)"