diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-06-18 11:05:52 +0100 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-28 12:23:22 +0100 |
commit | 324ae13d724ba2455edf1671db9a8fde7dd5b122 (patch) | |
tree | a1b5c6e0b05a4ee171b1dddc4e891954e5e92cda /tests/sources/previous_source_access.py | |
parent | 1366a4031ad0c43e25cb85e890474018490c940f (diff) | |
download | buildstream-bschubert/node-api-noset.tar.gz |
_yaml: Remove 'node_set'. Now use __setitem__bschubert/node-api-noset
- Implement __setitem__ on 'MappingNode'
- Implement __setitem__ on 'SequenceNode'
- Adapt all call sites to use the new calling way.
Diffstat (limited to 'tests/sources/previous_source_access.py')
-rw-r--r-- | tests/sources/previous_source_access.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sources/previous_source_access.py b/tests/sources/previous_source_access.py index 50bfe383c..916cd5a6f 100644 --- a/tests/sources/previous_source_access.py +++ b/tests/sources/previous_source_access.py @@ -25,7 +25,7 @@ def test_custom_transform_source(cli, datafiles): project_config_path = os.path.join(project, "project.conf") project_config = _yaml.load(project_config_path) aliases = project_config.get_mapping("aliases") - _yaml.node_set(aliases, "project_dir", "file://{}".format(project)) + aliases["project_dir"] = "file://{}".format(project) _yaml.dump(project_config, project_config_path) # Ensure we can track |