From b8cf644959d43911fd10d1cda6253df08341e78f Mon Sep 17 00:00:00 2001 From: Aggelos Kolaitis Date: Sun, 13 Sep 2020 17:41:53 +0300 Subject: [PATCH] Add `name` to StringIO object to fix failing test --- awxkit/test/cli/test_format.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awxkit/test/cli/test_format.py b/awxkit/test/cli/test_format.py index 5ab6e55d6c..7327f91518 100644 --- a/awxkit/test/cli/test_format.py +++ b/awxkit/test/cli/test_format.py @@ -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()