import pyramid.testing

import pym.testing
import pym.models


def before_all(context):
    args = pym.testing.TestingArgs
    app = pym.testing.init_app(args, setup_logging=True)
    # This essentially sets properties:
    # settings, DbEngine, DbSession, DbBase
    for k, v in app.items():
        setattr(context, k, v)


# noinspection PyUnusedLocal
def before_scenario(context, scenario):
    context.configurator = pyramid.testing.setUp(
        request=pyramid.testing.DummyRequest(),
        settings=context.settings
    )
    context.sess = pym.models.DbSession()


# noinspection PyUnusedLocal
def after_scenario(context, scenario):
    pyramid.testing.tearDown()
    #context.sess.remove()
260916194d37710564b85914f46887f07406c4bd
<mask token>


def after_scenario(context, scenario):
    pyramid.testing.tearDown()

<mask token>


def before_all(context):
    args = pym.testing.TestingArgs
    app = pym.testing.init_app(args, setup_logging=True)
    for k, v in app.items():
        setattr(context, k, v)


<mask token>


def after_scenario(context, scenario):
    pyramid.testing.tearDown()

<mask token>


def before_all(context):
    args = pym.testing.TestingArgs
    app = pym.testing.init_app(args, setup_logging=True)
    for k, v in app.items():
        setattr(context, k, v)


def before_scenario(context, scenario):
    context.configurator = pyramid.testing.setUp(request=pyramid.testing.
        DummyRequest(), settings=context.settings)
    context.sess = pym.models.DbSession()


def after_scenario(context, scenario):
    pyramid.testing.tearDown()

import pyramid.testing
import pym.testing
import pym.models


def before_all(context):
    args = pym.testing.TestingArgs
    app = pym.testing.init_app(args, setup_logging=True)
    for k, v in app.items():
        setattr(context, k, v)


def before_scenario(context, scenario):
    context.configurator = pyramid.testing.setUp(request=pyramid.testing.
        DummyRequest(), settings=context.settings)
    context.sess = pym.models.DbSession()


def after_scenario(context, scenario):
    pyramid.testing.tearDown()

import pyramid.testing

import pym.testing
import pym.models


def before_all(context):
    args = pym.testing.TestingArgs
    app = pym.testing.init_app(args, setup_logging=True)
    # This essentially sets properties:
    # settings, DbEngine, DbSession, DbBase
    for k, v in app.items():
        setattr(context, k, v)


# noinspection PyUnusedLocal
def before_scenario(context, scenario):
    context.configurator = pyramid.testing.setUp(
        request=pyramid.testing.DummyRequest(),
        settings=context.settings
    )
    context.sess = pym.models.DbSession()


# noinspection PyUnusedLocal
def after_scenario(context, scenario):
    pyramid.testing.tearDown()
    #context.sess.remove()