diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-28 17:36:33 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-15 14:14:03 +0000 |
commit | 7b9a478868ba7a2a1f5b49142496d0eb77322e21 (patch) | |
tree | a7e99ac0e5c43ad31be73d6df8489371e1e395ac /tests/frontend | |
parent | 06faf60f47d270bc9ce3c6945c31861302882ae9 (diff) | |
download | buildstream-7b9a478868ba7a2a1f5b49142496d0eb77322e21.tar.gz |
_yaml: remove node_sanitize
Some call places do not need calls to 'node_sanitize' anymore, therefore
removing the call entirely.
Other still use it for convenience, but that doesn't seem the right way
to do it for consistency. Those places have been replaced by calls to
'Node.strip_node_info()'.
Diffstat (limited to 'tests/frontend')
-rw-r--r-- | tests/frontend/workspace.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py index 4951a74a4..9f8398d14 100644 --- a/tests/frontend/workspace.py +++ b/tests/frontend/workspace.py @@ -908,7 +908,7 @@ def test_list_supported_workspace(cli, tmpdir, datafiles, workspace_cfg, expecte def parse_dict_as_yaml(node): tempfile = os.path.join(str(tmpdir), 'yaml_dump') _yaml.roundtrip_dump(node, tempfile) - return _yaml.node_sanitize(_yaml.load(tempfile)) + return _yaml.load(tempfile).strip_node_info() project = str(datafiles) os.makedirs(os.path.join(project, '.bst')) @@ -920,7 +920,7 @@ def test_list_supported_workspace(cli, tmpdir, datafiles, workspace_cfg, expecte result = cli.run(project=project, args=['workspace', 'list']) result.assert_success() - loaded_config = _yaml.node_sanitize(_yaml.load(workspace_config_path)) + loaded_config = _yaml.load(workspace_config_path).strip_node_info() # Check that workspace config remains the same if no modifications # to workspaces were made @@ -955,7 +955,7 @@ def test_list_supported_workspace(cli, tmpdir, datafiles, workspace_cfg, expecte result.assert_success() # Check that workspace config is converted correctly if necessary - loaded_config = _yaml.node_sanitize(_yaml.load(workspace_config_path)) + loaded_config = _yaml.load(workspace_config_path).strip_node_info() assert loaded_config == parse_dict_as_yaml(expected) |