LogarithmPlotter/tests/python/test_helper.py
Ad5001 29e48e284c
Some checks failed
continuous-integration/drone/push Build is failing
Adding pytest to drone ci
2024-09-18 18:01:51 +02:00

16 lines
383 B
Python

import pytest
from os import getcwd
from os.path import join
from tempfile import TemporaryDirectory
from LogarithmPlotter.util import config
pwd = getcwd()
@pytest.fixture()
def temporary():
directory = TemporaryDirectory()
config.CONFIG_PATH = join(directory.name, "config.json")
tmpfile = join(directory.name, "graph.png")
yield tmpfile
directory.cleanup()