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
|
@ -26,6 +26,11 @@ def setup():
|
|||
|
||||
term = create(Term, Description="Test term", URL="https://test.term")
|
||||
|
||||
yield term
|
||||
|
||||
# Eradicate any terms we created.
|
||||
setup_test_db("AcceptedTerms", "Terms")
|
||||
|
||||
|
||||
def test_accepted_term():
|
||||
accepted_term = create(AcceptedTerm, User=user, Term=term)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue