mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-14 16:01:29 +00:00
12 lines
316 B
Python
12 lines
316 B
Python
import pytest
|
|
|
|
import os
|
|
|
|
@pytest.hookimpl()
|
|
def pytest_sessionfinish(session):
|
|
compose_file = os.path.join(str(session.path), "tests", "docker-compose.yml.generated")
|
|
|
|
if os.path.isfile(compose_file):
|
|
os.remove(compose_file)
|
|
print(f"\nDeleted temporary file {compose_file} sucessfully")
|