| 1 |
from pathlib import Path |
| 2 |
|
| 3 |
from isort import files |
| 4 |
from isort.settings import DEFAULT_CONFIG |
| 5 |
|
| 6 |
|
| 7 |
def test_find(tmp_path: Path) -> None: |
| 8 |
tmp_file = tmp_path / "file.py" |
| 9 |
tmp_file.write_text("import os, sys\n") |
| 10 |
assert tuple(files.find((tmp_file,), DEFAULT_CONFIG, [], [])) == (tmp_file,) |