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.
This fixes a test failure that started to occur after #101.
The cause of the problem was that the combination of the
pytester
fixture and thepytest_configure
hook is not very good. We usepytest_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.