-
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
9 changed files
with
260 additions
and
49 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
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
'pyyaml', | ||
'click', | ||
'glob2', | ||
'monkeypatch', | ||
'jsonpointer', | ||
'jsonpath-rw', | ||
'jq', | ||
|
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 @@ | ||
from packtivity.handlers.publisher_handlers import handlers | ||
from packtivity.typedleafs import TypedLeafs | ||
|
||
from packtivity.handlers.environment_handlers import handlers | ||
from packtivity.syncbackends import finalize_inputs | ||
|
||
import logging | ||
import monkeypatch | ||
|
||
def test_docker_parmounts(tmpdir,basic_localfs_state, docker_env_parmounts): | ||
state = basic_localfs_state | ||
environment = docker_env_parmounts.spec['environment'] | ||
|
||
parameters, state = finalize_inputs(TypedLeafs({'outputfile': '{workdir}/hello.txt'}), state) | ||
env = handlers[environment['environment_type']]['default'](environment,parameters,state) | ||
assert env['par_mounts'][0]['mountcontent'] == '"{}"'.format(parameters['outputfile']) |
Oops, something went wrong.