summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2020-12-20 18:37:20 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2020-12-20 18:37:20 -0800
commitc5b335500ab326b225626927ebadf5c584f58ac4 (patch)
tree750d37ee545e586ba60874aa1f4c2dea7a5cd71c
parent10fb87eb4ff0585ae48862af5be0c07543e406b5 (diff)
downloadisort-feature/super-fast-import-identification.tar.gz
Add test for new files modulefeature/super-fast-import-identification
-rw-r--r--tests/unit/test_files.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/test_files.py b/tests/unit/test_files.py
new file mode 100644
index 00000000..7ee6acf4
--- /dev/null
+++ b/tests/unit/test_files.py
@@ -0,0 +1,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,)