Move database and models to common submodule
This commit is contained in:
parent
83e5e210a5
commit
3ba138c81c
15
amanuensis/db/__init__.py
Normal file
15
amanuensis/db/__init__.py
Normal file
@ -0,0 +1,15 @@
|
||||
from .database import DbContext
|
||||
from .models import (
|
||||
User,
|
||||
Lexicon,
|
||||
Membership,
|
||||
Character,
|
||||
ArticleState,
|
||||
Article,
|
||||
IndexType,
|
||||
ArticleIndex,
|
||||
ArticleIndexRule,
|
||||
ArticleContentRuleType,
|
||||
ArticleContentRule,
|
||||
Post,
|
||||
)
|
@ -1,8 +1,7 @@
|
||||
import pytest
|
||||
from sqlalchemy import func
|
||||
|
||||
from amanuensis.database import DbContext
|
||||
from amanuensis.models import *
|
||||
from amanuensis.db import *
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
Loading…
Reference in New Issue
Block a user