-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid side-effects for providers-manager related tests (#37414)
When running tests in v2-8-tests some of the tests failed with package-name key not found in providers manager. This was because some other tests modified dictionaries stored in ProvidersManager and added there entries that missed the keys. This PR adds a a new fixture `cleanup_providers_manager` - that will reinitialize the ProvidersManager before the test and - more importantly will clean it up after. This way all the entries added manually should be removed for other tests and all the tests that do not explicitly initialize providers manager should fail if they need it. (cherry picked from commit 7461ac7)
- Loading branch information
1 parent
85d0a95
commit 7586d91
Showing
4 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters