Skip to content
Snippets Groups Projects
Commit e1ab02c2 authored by Kevin Morris's avatar Kevin Morris
Browse files

Fix database initialization in test_term.py


Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent 718fa48a
No related branches found
No related tags found
No related merge requests found
......@@ -2,10 +2,15 @@ import pytest
from sqlalchemy.exc import IntegrityError
from aurweb.db import create, delete
from aurweb.db import create, delete, get_engine
from aurweb.models.term import Term
@pytest.fixture(autouse=True)
def setup():
get_engine()
def test_term_creation():
term = create(Term, Description="Term description",
URL="https://fake_url.io")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment