Пример #1
0
def setup_and_teardown_dev_server():
    assert is_dev_server_running() is False
    subprocess.call(
        "python gaedevhelper/gae.py daemon --config tests/custom_config.py",
        shell=True)
    time.sleep(3)
    yield
    stop_dev_server()
    time.sleep(3)
Пример #2
0
def test_daemon_run_by_config(teardown_dev_server):
    subprocess.call(
        "python gaedevhelper/gae.py daemon --config tests/custom_config.py",
        shell=True)
    time.sleep(2)
    assert is_dev_server_running()
Пример #3
0
def test_daemon_run_by_wrong_args(teardown_dev_server):
    subprocess.call("python gaedevhelper/gae.py daemon -- -ooxx", shell=True)
    time.sleep(2)
    assert is_dev_server_running() is False
Пример #4
0
def teardown_dev_server():
    assert is_dev_server_running() is False
    yield
    stop_dev_server()
    time.sleep(3)