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
During our upgrade to the latest version of waffle, we had a few of our tests fail due to the cache not being flushed when an object is deleted from override_*.
While preparing to submit a patch for this I found it strange that I was unable to reproduce the failure within the waffle tests. So it turns out from what I can see that waffle uses Django TestCase, TransactionTestCase, a custom child of TransactionTestCase (called TestCase as well) and just functions as well.
I imagine this has happened given the contributions over time, but it would be great to have some clarification over which test case class to use. Or should certain aspects be tested against multiple test case classes (eg test_testutils.py)?
Specifically, we only use Django TestCase which generated the failures, but TransactionTestCase did not generate any failures.
PS Long time happy user, wanting to make it better 😄
The text was updated successfully, but these errors were encountered:
As for tests, I agree that is confusing. One of my goals for this project is to clean the tests and, hopefully, switch to testing with pytest. That work has not begun. In the interim feel free to create your patch with whatever test case makes the most sense. I will modify it later, if needed, once the tests are in a better state.
I will leave this ticket open as a reminder to myself.
Hi!
During our upgrade to the latest version of waffle, we had a few of our tests fail due to the cache not being flushed when an object is deleted from
override_*
.While preparing to submit a patch for this I found it strange that I was unable to reproduce the failure within the waffle tests. So it turns out from what I can see that waffle uses Django TestCase, TransactionTestCase, a custom child of TransactionTestCase (called TestCase as well) and just functions as well.
I imagine this has happened given the contributions over time, but it would be great to have some clarification over which test case class to use. Or should certain aspects be tested against multiple test case classes (eg test_testutils.py)?
Specifically, we only use Django TestCase which generated the failures, but TransactionTestCase did not generate any failures.
PS Long time happy user, wanting to make it better 😄
The text was updated successfully, but these errors were encountered: