Fix tests

This commit is contained in:
Georges-Antoine Assi
2023-11-04 23:30:53 -04:00
parent 015e5927d6
commit a3a1eb9323
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ REGIONS_BY_SHORTCODE = {region[0].lower(): region[1] for region in REGIONS}
REGIONS_NAME_KEYS = [region[1].lower() for region in REGIONS]
TAG_REGEX = r"\(([^)]+)\)|\[([^]]+)\]"
EXTENSION_REGEX = r"\.([a-z]+(\.\w+)*)$"
EXTENSION_REGEX = r"\.(([a-z]+\.)*\w+)$"
def parse_tags(file_name: str) -> tuple:

View File

@@ -58,7 +58,7 @@ def test_get_file_name_with_no_tags():
# This is expected behavior, since the regex is aggressive
file_name = "Battle Stadium D.O.N.zip"
assert gfnwt(file_name) == "Battle Stadium D"
assert gfnwt(file_name) == "Battle Stadium D.O.N"
def test_get_file_extension():