示例#1
0
def pytest_unconfigure(config):
    if not config.getoption("--no-teardown"):
        stop_docker_compose()

    for log in log_files:
        try:
            os.remove(log)
        except:
            pass
示例#2
0
def pytest_runtest_teardown(item, nextitem):
    if nextitem is None:
        stop_docker_compose()
示例#3
0
def pytest_unconfigure(config):
    if not config.getoption("--no-teardown"):
        stop_docker_compose()