hpi-swa-teaching / Liquid

(SWT22-07)
MIT License
6 stars 0 forks source link

Add super class for test cases #275

Open florian-str opened 4 months ago

florian-str commented 4 months ago

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.