File: test_files.py

package info (click to toggle)
isort 8.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,404 kB
  • sloc: python: 14,876; javascript: 42; makefile: 28; sh: 21
file content (8 lines) | stat: -rw-r--r-- 249 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
from isort import files
from isort.settings import DEFAULT_CONFIG


def test_find(tmpdir):
    tmp_file = tmpdir.join("file.py")
    tmp_file.write("import os, sys\n")
    assert tuple(files.find((tmp_file,), DEFAULT_CONFIG, [], [])) == (tmp_file,)