예제 #1
0
def exp(tmp_path):
    script = "tests/res/script-hello_world.py"
    secrets = "tests/res/secrets-default.conf"
    exp = get_exp_session(tmp_path, script_path=script, secrets_path=secrets)

    yield exp

    clear_db()
예제 #2
0
def client(tmp_path):
    script = "tests/res/script-admin.py"
    secrets = "tests/res/secrets-admin.conf"

    app = get_app(tmp_path, script_path=script, secrets_path=secrets)

    with app.test_client() as client:
        yield client

    clear_db()
예제 #3
0
def exp(tmp_path):
    script = "tests/res/script-hello_world.py"
    secrets = "tests/res/secrets-default.conf"
    exp = get_exp_session(tmp_path, script_path=script, secrets_path=secrets)

    exp += al.Page(title="Testpage", name="testpage")

    yield exp

    clear_db()
예제 #4
0
def exp_factory(tmp_path):
    def expf():
        script = "tests/res/script-hello_world.py"
        secrets = "tests/res/secrets-default.conf"
        exp = get_exp_session(tmp_path,
                              script_path=script,
                              secrets_path=secrets)
        return exp

    yield expf

    clear_db()
예제 #5
0
def exp(tmp_path):
    script = "tests/res/script-basic_movement.py"
    secrets = "tests/res/secrets-default.conf"
    exp = get_exp_session(tmp_path, script_path=script, secrets_path=secrets)
    yield exp
    clear_db()