Пример #1
0
def before_all(context: Context):
    os.environ["APPLICATION_ENV"] = "test"
    from pepy.infrastructure import container
    from pepy.infrastructure.web import app

    context.container = container
    context.client = app.test_client()
Пример #2
0
def step_impl(context: Context):
    context.client = grakn.Client(env.broken_connection)
Пример #3
0
def step_impl(context: Context):
    context.client = grakn.Client(keyspace=env.new_keyspace())
Пример #4
0
def step_impl(context: Context) -> None:
    context.client = GrabClient(credentials=('client_id', 'secret'),
                                sandbox_mode=False)
def step_impl(context: Context) -> None:
    context.client = KGXClient(credentials=('my_username', 'my_password'),
                               sandbox_mode=False)