mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
eradicate Term records after testing them
Otherwise, Terms can leak out into other tests causing /tos redirects unexpectedly. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
adb42882c5
commit
a36cc0c00a
3 changed files with 16 additions and 0 deletions
|
@ -11,6 +11,11 @@ from aurweb.testing import setup_test_db
|
|||
def setup():
|
||||
setup_test_db("Terms")
|
||||
|
||||
yield None
|
||||
|
||||
# Wipe em out just in case records are leftover.
|
||||
setup_test_db("Terms")
|
||||
|
||||
|
||||
def test_term_creation():
|
||||
term = create(Term, Description="Term description",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue