Skip to content

Commit

Permalink
Rename src directory to flask_boiler
Browse files Browse the repository at this point in the history
  • Loading branch information
billyrrr committed Sep 1, 2019
1 parent 7736230 commit 657fee1
Show file tree
Hide file tree
Showing 26 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src import config, context, auth, fields, schema, serializable, \
from flask_boiler import config, context, auth, fields, schema, serializable, \
firestore_object, domain_model, view_model, view, factory

__all__ = ["config", "context", "auth", "fields", "schema", "serializable",
Expand Down
14 changes: 7 additions & 7 deletions examples/binding_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
from flasgger import Swagger, SwaggerView
from google.cloud.firestore import DocumentReference

from src.view import GenericView
from src import fields
from src.schema import Schema
from src.view_model import ViewModel
from src.domain_model import DomainModel
from flask_boiler.view import GenericView
from flask_boiler import fields
from flask_boiler.schema import Schema
from flask_boiler.view_model import ViewModel
from flask_boiler.domain_model import DomainModel
from google.cloud import firestore
from functools import partial

from examples.luggage_models import LuggageItem, Luggages

from src.config import Config
from src.context import Context as CTX
from flask_boiler.config import Config
from flask_boiler.context import Context as CTX

if __name__ == "__main__":
config = Config(
Expand Down
4 changes: 2 additions & 2 deletions examples/luggage_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from src import serializable, schema, fields, domain_model, view_model
from src.firestore_object import FirestoreObjectClsFactory
from flask_boiler import serializable, schema, fields, domain_model, view_model
from flask_boiler.firestore_object import FirestoreObjectClsFactory

Schema = schema.Schema

Expand Down
14 changes: 7 additions & 7 deletions examples/view_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

from flask import Flask, jsonify
from flasgger import Swagger, SwaggerView
from src.view import GenericView, document_as_view, default_mapper
from src import fields
from src.schema import Schema
from src.firestore_object import FirestoreObjectClsFactory
from src.view_model import ViewModel
from flask_boiler.view import GenericView, document_as_view, default_mapper
from flask_boiler import fields
from flask_boiler.schema import Schema
from flask_boiler.firestore_object import FirestoreObjectClsFactory
from flask_boiler.view_model import ViewModel
from google.cloud import firestore
from functools import partial

from src.config import Config
from src.context import Context as CTX
from flask_boiler.config import Config
from flask_boiler.context import Context as CTX

if __name__ == "__main__":
"""
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def CTX():
:return:
"""

from src.context import Context as TST_CTX
from src.config import Config
from flask_boiler.context import Context as TST_CTX
from flask_boiler.config import Config

config = Config(
app_name="gravitate-dive-testing",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_context.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from src import config
from src import context
from flask_boiler import config
from flask_boiler import context


Config = config.Config
Expand Down
12 changes: 6 additions & 6 deletions tests/test_domain_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import pytest
from google.cloud.firestore import Query

from src.config import Config
from src.context import Context as CTX
from flask_boiler.config import Config
from flask_boiler.context import Context as CTX

from src.firestore_object import FirestoreObjectClsFactory
from src.domain_model import DomainModel
from src.schema import Schema
from src import fields
from flask_boiler.firestore_object import FirestoreObjectClsFactory
from flask_boiler.domain_model import DomainModel
from flask_boiler.schema import Schema
from flask_boiler import fields

config = Config(
app_name="gravitate-dive-testing",
Expand Down
8 changes: 4 additions & 4 deletions tests/test_firestore_object.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import pytest
from testfixtures import compare

from src import schema, fields
from src.context import Context as CTX
from src.config import Config
from src.firestore_object import FirestoreObject, PrimaryObject, \
from flask_boiler import schema, fields
from flask_boiler.context import Context as CTX
from flask_boiler.config import Config
from flask_boiler.firestore_object import FirestoreObject, PrimaryObject, \
FirestoreObjectClsFactory

config = Config(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from marshmallow import Schema
from src import fields
from flask_boiler import fields


def test_basic_schema():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_schema.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from testfixtures import compare

from src import schema, fields
from flask_boiler import schema, fields


def test__get_instance_vars():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_serializable.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"""

from src import serializable
from src import view_model, schema, fields
from flask_boiler import serializable
from flask_boiler import view_model, schema, fields


def test_cls_factory():
Expand Down
10 changes: 5 additions & 5 deletions tests/test_view_model.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from src import fields
from src.schema import Schema
from src.domain_model import DomainModel
from src.view_model import ViewModel
from src.firestore_object import FirestoreObjectClsFactory
from flask_boiler import fields
from flask_boiler.schema import Schema
from flask_boiler.domain_model import DomainModel
from flask_boiler.view_model import ViewModel
from flask_boiler.firestore_object import FirestoreObjectClsFactory

import pytest

Expand Down

0 comments on commit 657fee1

Please sign in to comment.