Skip to content

Commit 56c6826

Browse files
#134 Add tests for multiple dir fetch
1 parent 7b02b47 commit 56c6826

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/test_utils.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from unittest import main, TestCase
2+
import os
3+
4+
5+
class UtilTests(TestCase):
6+
7+
def test_get_step_impl_returns_array_of_impl_dirs(self):
8+
os.environ["STEP_IMPL_DIR"] = "step_impl,step_impl1"
9+
from getgauge.util import get_step_impl_dirs
10+
dirs = get_step_impl_dirs()
11+
expected = ['step_impl','step_impl1']
12+
self.assertEquals(dirs,expected)
13+
14+
if __name__ == '__main__':
15+
main()

tests/test_validate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ def test_is_valid(self):
1616

1717
def test_format_params(self):
1818
self.assertEqual("a, b, arg3", _format_params(["a", "b", "2"]))
19+
20+
if __name__ == '__main__':
21+
unittest.main()

0 commit comments

Comments
 (0)