remember-remember-bot/tests/conftest.py

11 lines
246 B
Python
Raw Normal View History

2023-09-01 21:58:54 +00:00
import pytest
@pytest.fixture
def tmp_file_path(request, tmpdir):
if request.param:
path = str(tmpdir) + "/" + str(request.param)
with open(path, "w+", encoding="utf-8") as f:
f.write("test")
return path