mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
Fix tests
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user