# Path: gap/utils/setup.py
# GAE_APP_ROOT = 'src'
# GAE_RUNTIME_ROOT = None
# _PATH_FIXED = 0
#         _PATH_FIXED = 1
#         _PATH_FIXED = 2
# DEFAULT_TESTBEDS = (
#     'datastore',
#     'app_identity',
#     'memcache',
#     'files',
#     'urlfetch',
#     'mail',
#     'search',
# )
# def find_gae_runtime_path():
# def fix_sys_path(app_src=None):
# def read_yaml(app_src):
# def setup_stubs(app_src):
# def setup_testbed(stubs=DEFAULT_TESTBEDS, env={}):


import json
        import app
        import webtest
            import webapp2
import random
import string
from unittest import TestCase
from gap.utils import setup
        from os import environ as env
        from os import environ as env
        from app import handler
from datetime import date, datetime, timedelta
from pprint import pprint
from google.appengine.ext import ndb
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# @author Lukas Lukovsky
#
# part of gap project (https://github.com/czervenka/gap)
__author__ = 'Lukas Lukovsky'


DEFAULT = object()

class TestBase(TestCase):

    testbed = None

    _gae_stubs = setup.DEFAULT_TESTBEDS

    # Allow to share the setUpClass method among all parallel test classes
    _multiprocess_shared_ = True

    # Allow concurrent run of fixtures
    _multiprocess_can_split_ = True

    @classmethod
    def setUpClass(cls):
        # Begin with testbed instance

# Path: gap/utils/setup.py
# GAE_APP_ROOT = 'src'
# GAE_RUNTIME_ROOT = None
# _PATH_FIXED = 0
#         _PATH_FIXED = 1
#         _PATH_FIXED = 2
# DEFAULT_TESTBEDS = (
#     'datastore',
#     'app_identity',
#     'memcache',
#     'files',
#     'urlfetch',
#     'mail',
#     'search',
# )
# def find_gae_runtime_path():
# def fix_sys_path(app_src=None):
# def read_yaml(app_src):
# def setup_stubs(app_src):
# def setup_testbed(stubs=DEFAULT_TESTBEDS, env={}):


# Path: gap/utils/tests.py
import json
        import app
        import webtest
            import webapp2
import random
import string
from unittest import TestCase
from gap.utils import setup
        from os import environ as env
        from os import environ as env
        from app import handler
from datetime import date, datetime, timedelta
from pprint import pprint
from google.appengine.ext import ndb

#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# @author Lukas Lukovsky
#
# part of gap project (https://github.com/czervenka/gap)
__author__ = 'Lukas Lukovsky'


DEFAULT = object()

class TestBase(TestCase):

    testbed = None

    _gae_stubs = setup.DEFAULT_TESTBEDS

    # Allow to share the setUpClass method among all parallel test classes
    _multiprocess_shared_ = True

    # Allow concurrent run of fixtures
    _multiprocess_can_split_ = True

    @classmethod
    def setUpClass(cls):
        # Begin with testbed instance

        cls.testbed = setup.setup_testbed(stubs=cls._gae_stubs)