From 2c4322cac434f767ede180b9724f77e2a7845367 Mon Sep 17 00:00:00 2001 From: tau3 Date: Thu, 15 Feb 2018 21:11:47 +0400 Subject: Implemented unit test for recent fix --- tests/ranger/core/__init__.py | 0 tests/ranger/core/test_main.py | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/ranger/core/__init__.py create mode 100644 tests/ranger/core/test_main.py (limited to 'tests') diff --git a/tests/ranger/core/__init__.py b/tests/ranger/core/__init__.py new file mode 100644 index 00000000..e69de29b 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() -- cgit 1.4.1-2-gfad0 ef='/gbmor/getwtxt/refs/?h=v0.4.9&id=a3c67f1ff9ed2cff44930f6bfd17a3ec272fe2f5'>refs log blame commit diff stats
path: root/types.go
blob: b5f27ce05a1a2ba68e44e729d22b1b5782b48cc1 (plain) (tree)
1
2
3
4
5
6
7
8
9