Skip to content

Commit

Permalink
Consistent quote sign
Browse files Browse the repository at this point in the history
  • Loading branch information
ji-yaqi committed Aug 23, 2021
1 parent 432fc7f commit bdb6814
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def execute(self, *args, **kwargs):
],
),
inputs={
'input1': component_spec.InputSpec(type="str"),
'input2': component_spec.InputSpec(type="int"),
'input3': component_spec.InputSpec(type="float", default=3.14),
'input1': component_spec.InputSpec(type='str'),
'input2': component_spec.InputSpec(type='int'),
'input3': component_spec.InputSpec(type='float', default=3.14),
},
outputs={
'output1': component_spec.OutputSpec(name='output1', type="str"),
'output1': component_spec.OutputSpec(name='output1', type='str'),
},
))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def test_component_spec_with_placeholder_referencing_nonexisting_input_output(
],
),
input_specs=[
component_spec.InputSpec(name='input1', type="str"),
component_spec.InputSpec(name='input1', type='str'),
],
output_specs=[
component_spec.OutputSpec(name='output1', type="str"),
component_spec.OutputSpec(name='output1', type='str'),
],
)

Expand Down Expand Up @@ -111,11 +111,11 @@ def test_component_spec_save_to_component_yaml(self):
'input1': component_spec.InputSpec(type='str')
},
outputs={
'output1': component_spec.OutputSpec(type="str")
'output1': component_spec.OutputSpec(type='str')
},
).save_to_component_yaml('test_save_file.txt')

open_mock.assert_called_with("test_save_file.txt", "a")
open_mock.assert_called_with('test_save_file.txt', 'a')
open_mock.return_value.write.assert_called_once_with(expected_yaml)

if __name__ == '__main__':
Expand Down

0 comments on commit bdb6814

Please sign in to comment.