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()
|