diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2018-05-28 13:22:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-28 13:22:46 +0200 |
commit | 5eb0077250d8b296c771e77d42e58bc63fdb4f8a (patch) | |
tree | 905e69a7cb66f272b551e02e0b43d5acf13f440f /tests | |
parent | a84f685ba278d35905e7adf1aacfffbce77929bd (diff) | |
parent | c8613cf8a83c9fc516cb1d0c523bf63dc79f1a70 (diff) | |
download | ranger-5eb0077250d8b296c771e77d42e58bc63fdb4f8a.tar.gz |
Merge branch 'master' into detect_file_encoding
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ranger/core/__init__.py | 0 | ||||
-rw-r--r-- | tests/ranger/core/test_main.py | 18 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/ranger/core/__init__.py b/tests/ranger/core/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tests/ranger/core/__init__.py diff --git a/tests/ranger/core/test_main.py b/tests/ranger/core/test_main.py new file mode 100644 index 00000000..d992b8a7 --- /dev/null +++ b/tests/ranger/core/test_main.py @@ -0,0 +1,18 @@ +import collections +import os + +from ranger.core import main + + +def test_get_paths(): + args_tuple = collections.namedtuple('args', 'paths') + args = args_tuple(paths=None) + + paths = main.get_paths(args) + + for path in paths: + assert os.path.exists(path) + + +if __name__ == '__main__': + test_get_paths() |