-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent from overwriting global configurations (#105)
This fixes a test failure that started to occur after #101. ``` ! _pytest.outcomes.Exit: playwright failed to launch ``` The cause of the problem was that the combination of the `pytester` fixture and the `pytest_configure` hook is not very good. We use `pytest_configure` to manage global settings, but this function is called again when we run sub-tests using pytester, resulting in new global settings being overwritten. So I added a check to prevent overwriting global settings once it is set.
- Loading branch information
1 parent
57dafeb
commit e253295
Showing
2 changed files
with
30 additions
and
31 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