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
Suppose pytest runs test2 first. Then both switch21 = Switch.get('switch_name1') and switch22 = Switch.get('switch_name2') will hit the database, as is expected.
Suppose we have two tests which we run with pytest:
pytest then shuffles the execution order and runs the tests.
Suppose pytest runs
test1
first. Thenswitch21 = Switch.get('switch_name1')
will hit the database (as it should per the override_switch doesn't clean the cache making fail tests that use the same switch #309), butswitch22 = Switch.get('switch_name2')
will not. I would expect thatswitch22 = Switch.get('switch_name2')
will hit the database too.Suppose pytest runs
test2
first. Then bothswitch21 = Switch.get('switch_name1')
andswitch22 = Switch.get('switch_name2')
will hit the database, as is expected.Related
The text was updated successfully, but these errors were encountered: