Move database and models to common submodule

This commit is contained in:
Tim Van Baak 2021-05-05 22:21:50 -07:00
parent 83e5e210a5
commit 3ba138c81c
4 changed files with 16 additions and 2 deletions

15
amanuensis/db/__init__.py Normal file
View File

@ -0,0 +1,15 @@
from .database import DbContext
from .models import (
User,
Lexicon,
Membership,
Character,
ArticleState,
Article,
IndexType,
ArticleIndex,
ArticleIndexRule,
ArticleContentRuleType,
ArticleContentRule,
Post,
)

View File

@ -1,8 +1,7 @@
import pytest import pytest
from sqlalchemy import func from sqlalchemy import func
from amanuensis.database import DbContext from amanuensis.db import *
from amanuensis.models import *
@pytest.fixture @pytest.fixture