LogarithmPlotter/tests/python/test_helper.py
Ad5001 4759bdcd33
All checks were successful
continuous-integration/drone/push Build is passing
Continuing python tests
2024-09-18 00:31:17 +02:00

13 lines
No EOL
343 B
Python

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