Fix tests

This commit is contained in:
StableLlama
2025-05-18 01:50:16 +02:00
parent b7c18ea8fd
commit 6c553eccf8
2 changed files with 0 additions and 33 deletions
-1
View File
@@ -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,
-32
View File
@@ -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<word>\w+)-(?P<number>\d+)"