3 changed files with 13 additions and 13 deletions
@ -0,0 +1,11 @@ |
|||||
|
import os |
||||
|
import pytest |
||||
|
from pathlib import Path |
||||
|
|
||||
|
|
||||
|
@pytest.fixture(name="path_to_log_file") |
||||
|
def log_path(): |
||||
|
log = Path("log.txt") |
||||
|
yield log |
||||
|
if log.is_file(): |
||||
|
os.remove(log) # pragma: no cover |
Loading…
Reference in new issue