about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2018-05-09 00:01:41 +0200
committertoonn <toonn@toonn.io>2018-05-09 00:01:41 +0200
commitea943048d453bff900d310110ac7227bcc126683 (patch)
treee1bae31b11b5afdd6bec49d93a8e29df0cc3666d /tests
parent9fb3fae3c34527a24a8c8b294a716aa6ff7f74f0 (diff)
parent2c4322cac434f767ede180b9724f77e2a7845367 (diff)
downloadranger-ea943048d453bff900d310110ac7227bcc126683.tar.gz
Merge branch 'start-path-resolving'
Diffstat (limited to 'tests')
-rw-r--r--tests/ranger/core/__init__.py0
-rw-r--r--tests/ranger/core/test_main.py18
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()