Skip to content

Commit

Permalink
test use of ~ with --include-easyblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed May 21, 2016
1 parent 5269f6f commit 7e71ff2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/framework/include.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ def test_include_easyblocks(self):
])
write_file(os.path.join(myeasyblocks, 'generic', 'mybar.py'), mybar_easyblock_txt)

# hijack $HOME to test expanding ~ in locations passed to include_easyblocks
os.environ['HOME'] = myeasyblocks

# expand set of known easyblocks with our custom ones
glob_paths = [os.path.join(myeasyblocks, '*'), os.path.join(myeasyblocks, '*/*.py')]
glob_paths = [os.path.join('~', '*'), os.path.join(myeasyblocks, '*/*.py')]
included_easyblocks_path = include_easyblocks(self.test_prefix, glob_paths)

expected_paths = ['__init__.py', 'easyblocks/__init__.py', 'easyblocks/myfoo.py',
Expand Down

0 comments on commit 7e71ff2

Please sign in to comment.