LogarithmPlotter/tests/python/test_helper.py

13 lines
343 B
Python
Raw Normal View History

2024-09-17 22:31:17 +00:00
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()