Add name to StringIO object to fix failing test

This commit is contained in:
Aggelos Kolaitis 2020-09-13 17:41:53 +03:00
parent 9918b2581c
commit b8cf644959
No known key found for this signature in database
GPG Key ID: 66AC4122BBC46C5C

View File

@ -63,6 +63,7 @@ def test_yaml_import():
- name: Workflow1
"""
)
yaml_fd.name = 'file.yaml'
cli = CLI(stdin=yaml_fd)
cli.parse_args(['--conf.format', 'yaml'])
cli.v2 = MockedV2()