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

Add unit tests #64

Merged
merged 15 commits into from
Apr 20, 2024
Merged

Add unit tests #64

merged 15 commits into from
Apr 20, 2024

Conversation

R1kaB3rN
Copy link
Member

@R1kaB3rN R1kaB3rN commented Apr 16, 2024

Related to #59

Adds unit tests for fix.py, the module responsible for applying user fixes.

- In the case that the game id is non-numeric and store isn't set to 'umu', gamefixes-umu wouldn't be searched for a fix.
Removes the relative import syntax to avoid an ImportError when running the unit test
- In order to run unit tests for the protonfix modules, it seems relative imports cannot be used when referencing the modules relative to the project directory as an ImportError will occur. Since relative imports are necessary for running protonfixes in Proton, we need to keep them and handle the exception by importing normally.
- In the case that the store is set and the game id is numeric, no steam game fixes will be referenced
@R1kaB3rN R1kaB3rN marked this pull request as ready for review April 20, 2024 04:24
@R1kaB3rN R1kaB3rN merged commit ceac045 into Open-Wine-Components:master Apr 20, 2024
1 check passed
@R1kaB3rN R1kaB3rN deleted the tests branch April 20, 2024 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant