-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from linkml/issue_163
Fix issue #163
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import os | ||
import unittest | ||
|
||
from linkml_runtime.utils.context_utils import parse_import_map | ||
|
||
|
||
class Issue163TestCase(unittest.TestCase): | ||
def test_trailing_sep(self): | ||
""" Test the importmap namespace """ | ||
importmap = parse_import_map('{ "base:": "base/" }', os.path.dirname(__file__)) | ||
# TODO: see how this works in a windows environment | ||
self.assertTrue(importmap['base:'].endswith('/'), msg="Trailing separator stripped in import map parsing") | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |