Fix the config tests
This commit is contained in:
parent
79a4cc8937
commit
a8fc35cf35
1 changed files with 4 additions and 3 deletions
|
@ -2,17 +2,18 @@
|
|||
Test the config module
|
||||
"""
|
||||
|
||||
import tempfile
|
||||
import pytest
|
||||
import os
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from poezio import config
|
||||
|
||||
@pytest.yield_fixture(scope="module")
|
||||
def config_obj():
|
||||
file_ = tempfile.NamedTemporaryFile(delete=False)
|
||||
conf = config.Config(file_name=file_.name)
|
||||
conf = config.Config(file_name=Path(file_.name))
|
||||
yield conf
|
||||
del conf
|
||||
os.unlink(file_.name)
|
||||
|
|
Loading…
Reference in a new issue