# Path: models/bases.py
# NO_VALUE = sa_symbol('NO_VALUE')
# class Base(object):
# class BaseModel(Base):
#     def __repr__(self):
#     def __str__(self):
#     def __tablename__(cls):  # pylint: disable=no-self-argument
#     def delete(self):
#     def _prepare_conditions(cls, conditions):
#     def get_all(cls, conditions=None):
#     def get_by_pk(cls, the_id):
#     def save(self, flush=False):


    from builtins import *  # pylint: disable=unused-wildcard-import,redefined-builtin,wildcard-import
from models import bases
    import sys
import datetime
import warnings
import pytest
import sqlalchemy as sa
import sqlalchemy_utils.functions
"""
Tests for the Base Model
"""
from __future__ import (absolute_import, division, print_function, unicode_literals)
try:
except ImportError:
    print("WARNING: Cannot Load builtins for py3 compatibility.", file=sys.stderr)





warnings.simplefilter("error")  # Make All warnings errors while testing.


class DummyBase(bases.Base):  # pylint: disable=too-few-public-methods
    """ Model for testing the declarative base. """
    pkey = sa.Column(sa.Integer, primary_key=True)  # SQLAlchemy requires a primary key



# Path: models/bases.py
# NO_VALUE = sa_symbol('NO_VALUE')
# class Base(object):
# class BaseModel(Base):
#     def __repr__(self):
#     def __str__(self):
#     def __tablename__(cls):  # pylint: disable=no-self-argument
#     def delete(self):
#     def _prepare_conditions(cls, conditions):
#     def get_all(cls, conditions=None):
#     def get_by_pk(cls, the_id):
#     def save(self, flush=False):


# Path: tests/models/test_base.py
    from builtins import *  # pylint: disable=unused-wildcard-import,redefined-builtin,wildcard-import
from models import bases
    import sys
import datetime
import warnings
import pytest
import sqlalchemy as sa
import sqlalchemy_utils.functions

"""
Tests for the Base Model
"""
from __future__ import (absolute_import, division, print_function, unicode_literals)
try:
except ImportError:
    print("WARNING: Cannot Load builtins for py3 compatibility.", file=sys.stderr)





warnings.simplefilter("error")  # Make All warnings errors while testing.


class DummyBase(bases.Base):  # pylint: disable=too-few-public-methods
    """ Model for testing the declarative base. """
    pkey = sa.Column(sa.Integer, primary_key=True)  # SQLAlchemy requires a primary key



class DummyModel(bases.BaseModel):