-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
13 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import packtivity.utils as utils | ||
|
||
handlers,environment = utils.handler_decorator() | ||
|
||
#this will in the future handle the env-building |
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
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
import os | ||
from packtivity.typedleafs import TypedLeafs | ||
def test_pack_call_local(tmpdir,basic_localfs_state): | ||
|
||
from packtivity.statecontexts.posixfs_context import LocalFSState | ||
pars = TypedLeafs({'parcard': ['{workdir}/parcard.dat'], 'banner_file': '{workdir}/banner.txt'}) | ||
|
||
newpars = basic_localfs_state.model(pars) | ||
|
||
assert type(pars) == TypedLeafs | ||
assert newpars['banner_file'] == os.path.join(str(tmpdir), 'banner.txt') | ||
assert newpars['parcard'][0] == os.path.join(str(tmpdir), 'parcard.dat') |