diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-10-15 14:17:19 +0100 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2019-10-16 13:58:57 +0100 |
commit | 1a7582c45a9bd265b8da429fde145b115a50fac0 (patch) | |
tree | 9990eef5524a5640e027275e5735ca79600c8471 /tests/frontend | |
parent | abc522cd6a292ef571cafb1b4d4288903690d730 (diff) | |
download | buildstream-1a7582c45a9bd265b8da429fde145b115a50fac0.tar.gz |
node.pyx: Make 'strip_node_info' public
'strip_node_info' would be useful for multiple plugins. We should
therefore allow users to use it.
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 2006fe7f4..dc9f38540 100644 --- a/tests/frontend/workspace.py +++ b/tests/frontend/workspace.py @@ -950,7 +950,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.load(tempfile)._strip_node_info() + return _yaml.load(tempfile).strip_node_info() project = str(datafiles) os.makedirs(os.path.join(project, '.bst')) @@ -962,7 +962,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.load(workspace_config_path)._strip_node_info() + loaded_config = _yaml.load(workspace_config_path).strip_node_info() # Check that workspace config remains the same if no modifications # to workspaces were made @@ -997,7 +997,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.load(workspace_config_path)._strip_node_info() + loaded_config = _yaml.load(workspace_config_path).strip_node_info() assert loaded_config == parse_dict_as_yaml(expected) |