Move database and models to common submodule
This commit is contained in:
parent
83e5e210a5
commit
3ba138c81c
|
@ -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
|
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
|
||||||
|
|
Loading…
Reference in New Issue