Skip to content

Commit 367756a

Browse files
committed
adding urljoin function else will get NotImplemented error
1 parent 5ddf49f commit 367756a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_fetch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import unittest
2+
import urlparse
23

34
import schema_salad.main
45
import schema_salad.ref_resolver
@@ -26,6 +27,9 @@ def fetch_text(self, url): # type: (unicode) -> unicode
2627
else:
2728
raise RuntimeError("Not foo.cwl")
2829

30+
def urljoin(self, base_url, url): # type: (Text, Text) -> Text
31+
return urlparse.urljoin(base_url, url)
32+
2933
def check_exists(self, url): # type: (unicode) -> bool
3034
if url == "baz:bar/foo.cwl":
3135
return True

0 commit comments

Comments
 (0)