f67e0f54ef3b6b253d29bf8a86c20944ec6bd7b5,tests/test_polyaxonfile/test_polyaxonfile_typing.py,TestPolyaxonfileWithTypes,test_required_inputs_with_params,#TestPolyaxonfileWithTypes#,29
Before Change
spec.apply_context()
assert spec.version == 0.6
assert spec.tags == {"foo": "bar"}
assert spec.params == {"loss": "bar", "flag": ""}
assert spec.container.image == "my_image"
assert spec.container.command == ["/bin/sh", "-c"]
assert spec.container.args == "video_prediction_train --loss=bar "
assert spec.environment is None
After Change
// Adding extra value raises
with self.assertRaises(PolyaxonfileError):
spec.apply_context(params={"loss": "bar", "flag": True, "value": 1.1})
with self.assertRaises(PolyaxonfileError):
PolyaxonFile(
os.path.abspath("tests/fixtures/typing/required_inputs.yml"),
params={"loss": "bar", "value": 1.1},
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: polyaxon/polyaxon
Commit Name: f67e0f54ef3b6b253d29bf8a86c20944ec6bd7b5
Time: 2019-09-22
Author: contact@polyaxon.com
File Name: tests/test_polyaxonfile/test_polyaxonfile_typing.py
Class Name: TestPolyaxonfileWithTypes
Method Name: test_required_inputs_with_params
Project Name: polyaxon/polyaxon
Commit Name: f67e0f54ef3b6b253d29bf8a86c20944ec6bd7b5
Time: 2019-09-22
Author: contact@polyaxon.com
File Name: tests/test_polyaxonfile/test_polyaxonfile.py
Class Name: TestPolyaxonfile
Method Name: test_passing_params_overrides_polyaxonfiles
Project Name: polyaxon/polyaxon
Commit Name: f67e0f54ef3b6b253d29bf8a86c20944ec6bd7b5
Time: 2019-09-22
Author: contact@polyaxon.com
File Name: tests/test_polyaxonfile/test_polyaxonfile_typing.py
Class Name: TestPolyaxonfileWithTypes
Method Name: test_run_with_refs