Skip to content

Commit

Permalink
Refactor model schema package
Browse files Browse the repository at this point in the history
  • Loading branch information
rbw committed Nov 7, 2020
1 parent 5e79e0a commit 7b39724
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aiosnow/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .attachment import AttachmentModel
from .table import TableModel
from ._base.schema import fields, ModelSchema, ModelSchemaMeta, Pluck, BaseField
from ._schema import fields, ModelSchema, ModelSchemaMeta, Pluck, BaseField
1 change: 0 additions & 1 deletion aiosnow/models/_base/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from .schema import fields, ModelSchema, ModelSchemaMeta, Pluck, Nested, BaseField
from .model import BaseModel, BaseModelMeta
from .table import BaseTableModel

2 changes: 1 addition & 1 deletion aiosnow/models/_base/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
methods,
)

from .._base.schema import ModelSchema, ModelSchemaMeta, Nested, BaseField
from .._schema import ModelSchema, ModelSchemaMeta, BaseField, Nested

req_cls_map = {
methods.GET: GetRequest,
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import marshmallow

from aiosnow.models._base.schema.helpers import Pluck
from aiosnow.models._schema.helpers.pluck import Pluck


class BaseField(marshmallow.fields.Field):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion aiosnow/models/attachment/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

from .file import FileHandler, FileReader, FileWriter

from .._base import fields, BaseTableModel
from .._base import BaseTableModel
from .._schema import fields


class AttachmentModel(BaseTableModel):
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from aiohttp import web

from aiosnow import fields, Client
from aiosnow import Client, fields
from aiosnow.request.response import Response


Expand Down

0 comments on commit 7b39724

Please sign in to comment.