Skip to content

Commit 9c3d1a1

Browse files
committed
add test for PathMapper bug
1 parent 6465600 commit 9c3d1a1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/test_pathmapper.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import unittest
2+
import json
3+
import cwltool.draft2tool as tool
4+
import cwltool.expression as expr
5+
import cwltool.factory
6+
from cwltool.pathmapper import PathMapper
7+
8+
9+
class TestPathMapper(unittest.TestCase):
10+
11+
def test_subclass(self):
12+
13+
class SubPathMapper(PathMapper):
14+
15+
def __init__(self, referenced_files, basedir, new):
16+
super(PathMapper, self).__init__(referenced_files, basedir)
17+
self.new = new
18+
19+
a = SubPathMapper([], '', "new")
20+
self.assertTrue(a.new, "new")
21+

0 commit comments

Comments
 (0)