-
-
Notifications
You must be signed in to change notification settings - Fork 357
Add more tests for regression coverage #2142
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
Conversation
…sure no future regressions occur
ofek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
| project = Project(project_path) | ||
| helpers.update_project_environment(project, "default", {"dev-mode": False, **project.config.envs["default"]}) | ||
| helpers.update_project_environment( | ||
| project, "default", {"dev-mode": False, "extra-dependencies": ["binary"], **project.config.envs["default"]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of adding an extra dependency here to the base test for non-dev mode project installation? If this is not strictly required for testing correctness then I'd prefer to remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this it does not trigger that regression we saw because the regression was in the VirtualEnvironment.sync_dependencies functionality. This just ensures that code path always gets triggered.
* Add more unit tests that cover regressions and additional cases to ensure no future regressions occur * Remove duplicated test * Fix formatting * Avoid isolation for new tests that pollutes in memory config tests 4776f11
This PR adds tests for regression of dev-mode to ensure that it properly triggers the condition that caused the regression. It also adds additional tests to try to get more coverage on EnvironmentInterface for other potential areas that regressions in the future could occur.