Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests for usernames with digits #36

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ulwgl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ def test_set_env_toml_paths(self):
An error should not be raised when passing unexpanded paths to the config file as well as the prefix, proton and exe keys
"""
test_toml = "foo.toml"
pattern = r"^/home/[a-zA-Z]+"
pattern = r"^/home/[\w\d]+" # Expects only unicode decimals and alphanumerics

# Replaces the expanded path to unexpanded
# Example: ~/some/path/to/this/file -> /home/foo/path/to/this/file
Expand Down Expand Up @@ -1277,7 +1277,7 @@ def test_setup_pfx_mv(self):
After setting up the prefix then moving it to a different path, ensure that the symbolic link points to that new location
"""
result = None
pattern = r"^/home/[a-zA-Z]+"
pattern = r"^/home/[\w\d]+" # Expects only unicode decimals and alphanumerics
unexpanded_path = re.sub(
pattern,
"~",
Expand Down Expand Up @@ -1343,7 +1343,7 @@ def test_setup_pfx_symlinks(self):
pfx -> ~/.wine
"""
result = None
pattern = r"^/home/[a-zA-Z]+"
pattern = r"^/home/[\w\d]+" # Expects only unicode decimals and alphanumerics
unexpanded_path = re.sub(
pattern,
"~",
Expand Down Expand Up @@ -1382,7 +1382,7 @@ def test_setup_pfx_paths(self):
An error should not be raised when passing paths such as ~/path/to/prefix.
"""
result = None
pattern = r"^/home/[a-zA-Z]+"
pattern = r"^/home/[\w\d]+" # Expects only unicode decimals and alphanumerics
unexpanded_path = re.sub(
pattern,
"~",
Expand Down Expand Up @@ -1483,7 +1483,7 @@ def test_env_wine_dir(self):

def test_env_vars_paths(self):
"""Test check_env when setting unexpanded paths for $WINEPREFIX and $PROTONPATH."""
pattern = r"^/home/[a-zA-Z]+"
pattern = r"^/home/[\w\d]+" # Expects only unicode decimals and alphanumerics
path_to_tmp = Path(
Path(__file__).cwd().as_posix() + "/" + self.test_file
).as_posix()
Expand Down