-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
42 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.0 | ||
0.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
from willamette_common import ( | ||
WebSiteBase, WebPageBase, WebPageSchema, WebSiteSchema) | ||
from willamette_common.schemas import ( | ||
WebSiteFieldsMixinV1, | ||
WebPageFieldsMixinV1, | ||
WebPageSchemaV1, | ||
WebSiteSchemaV1) | ||
|
||
|
||
def test_web_site(): | ||
_ = WebSiteSchema() | ||
_ = WebSiteBase() | ||
_ = WebSiteSchemaV1() | ||
_ = WebSiteFieldsMixinV1() | ||
|
||
|
||
def test_web_page(): | ||
_ = WebPageSchema() | ||
_ = WebPageBase() | ||
_ = WebPageSchemaV1() | ||
_ = WebPageFieldsMixinV1() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
__all__ = ['WebPageSchema', 'WebSiteSchema'] | ||
__all__ = ['WebPageFieldsMixinV1', 'WebPageSchemaV1', 'WebSiteFieldsMixinV1', 'WebSiteSchemaV1'] | ||
|
||
from .web_pages import WebPageSchema | ||
from .web_sites import WebSiteSchema | ||
from .api_v1 import WebPageSchema as WebPageSchemaV1 | ||
from .api_v1 import WebSiteSchema as WebSiteSchemaV1 | ||
from .api_v1.mixins import WebPageFieldsMixin as WebPageFieldsMixinV1 | ||
from .api_v1.mixins import WebSiteFieldsMixin as WebSiteFieldsMixinV1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
__all__ = ['WebPageSchema', 'WebSiteSchema'] | ||
|
||
from .web_pages import WebPageSchema | ||
from .web_sites import WebSiteSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
__all__ = ['WebPageFieldsMixin', 'WebSiteFieldsMixin'] | ||
|
||
from .web_pages import WebPageFieldsMixin | ||
from .web_sites import WebSiteFieldsMixin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
__all__ = ['WebPageFieldsMixin'] | ||
|
||
from marshmallow import fields | ||
|
||
|
||
class WebPageFieldsMixin: | ||
text = fields.String() | ||
url = fields.Url(required=True) | ||
web_site_key = fields.String(required=True) |
4 changes: 2 additions & 2 deletions
4
willamette_common/models/web_sites.py → ...common/schemas/api_v1/mixins/web_sites.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
__all__ = ['WebSiteBase'] | ||
__all__ = ['WebSiteFieldsMixin'] | ||
|
||
from marshmallow import fields | ||
|
||
|
||
class WebSiteBase: | ||
class WebSiteFieldsMixin: | ||
url = fields.Url(required=True) | ||
inLanguage = fields.String() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters