mirror of
https://github.com/Hopiu/djLint.git
synced 2026-03-30 12:10:25 +00:00
18 lines
271 B
Python
18 lines
271 B
Python
import os
|
|
import tempfile
|
|
|
|
import pytest
|
|
from click.testing import CliRunner
|
|
|
|
|
|
@pytest.fixture
|
|
def runner():
|
|
yield CliRunner()
|
|
|
|
|
|
@pytest.fixture
|
|
def tmp_file():
|
|
tmp = tempfile.NamedTemporaryFile(delete=False)
|
|
yield tmp
|
|
tmp.close()
|
|
os.unlink(tmp.name)
|