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
{{ message }}
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
The tests currently don't work in isolation. This is due to language list caching which isn't followed through for all tests in the same manner, because of this some tests depend on earlier tests faking the language list. Setting up an autouse fixture might help here for the default and then have another to disable the language list cache since that is the least common case.
Code to reproduce
The text was updated successfully, but these errors were encountered:
Add a fixture to clear relevant env vars before each test run
Add a fixture for faking an AuthSubwinder instance
Test io for the examples
Move faking media to a fixture? Can do it once and then verify that the files are still there after each run (can we do multiple yields in a single fixture for multiple calls? If not then just check the cached location)
Is there a way we can make sure no requests go to the api durring unit tests? Some suite wide fixture with a mock that will raise an exception?
This should be working now. The process involved using fixtures for faking a lang cache as well as ensuring that env vars that can impact the tests were cleared before each test ran. To ensure that this continues working I'm using a pytest plugin that randomizes the order that the tests get evaluated in.
Bug Report
subwinder
version:master
Description
The tests currently don't work in isolation. This is due to language list caching which isn't followed through for all tests in the same manner, because of this some tests depend on earlier tests faking the language list. Setting up an
autouse
fixture might help here for the default and then have another to disable the language list cache since that is the least common case.Code to reproduce
The text was updated successfully, but these errors were encountered: