Open florian-str opened 4 months ago
Currently, all test cases are subclasses of TestCase and use the default Repo for storing and retrieving polls.
TestCase
However, this makes the result dependent on the previous system state and alters the users' system.
You should add a new super class for test cases that saves and restores the user state and injects a clean state for testing.
Currently, all test cases are subclasses of
TestCase
and use the default Repo for storing and retrieving polls.However, this makes the result dependent on the previous system state and alters the users' system.
You should add a new super class for test cases that saves and restores the user state and injects a clean state for testing.