You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move network-accessing fixtures init into a pytest fixture
Move the OSHFixtures class into a pytest fixture to defer initializing
it (and therefore accessing the Internet) until the relevant test
functions are called. This makes it possible for `pytest.mark.online`
to correctly skip them. It also avoids initializing the fixtures class
multiple times -- now it should be initialized once per session.
While at it, move the global functions into the OSHFixtures class. It
would need to access the class members anyway, and this seems cleaner
than passing its instance explicitly.
0 commit comments