diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2019-03-25 15:08:37 +0000 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2019-03-27 21:26:07 +0000 |
commit | 3816dcf8901b06f2b9c0153e5b5fe394acf104a5 (patch) | |
tree | e380f6c5386d97bc03707ccf8f20871b683e3b0b /tests/format/optioneltmask.py | |
parent | 1e698622caee2da202a2511bbf41f476224d4cb8 (diff) | |
download | buildstream-3816dcf8901b06f2b9c0153e5b5fe394acf104a5.tar.gz |
The new YAML World Order
Replace YAML internals with a new Node type, and refactor everything
to use it cleanly.
This work was also by James Ennis <james.ennis@codethink.co.uk>
Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Diffstat (limited to 'tests/format/optioneltmask.py')
-rw-r--r-- | tests/format/optioneltmask.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/format/optioneltmask.py b/tests/format/optioneltmask.py index 6305636ee..08f002b58 100644 --- a/tests/format/optioneltmask.py +++ b/tests/format/optioneltmask.py @@ -28,7 +28,7 @@ def test_conditional_cli(cli, datafiles, target, value, expected): result.assert_success() loaded = _yaml.load_data(result.output) - assert loaded['debug'] == expected + assert _yaml.node_get(loaded, str, 'debug') == expected @pytest.mark.datafiles(DATA_DIR) @@ -56,7 +56,7 @@ def test_conditional_config(cli, datafiles, target, value, expected): result.assert_success() loaded = _yaml.load_data(result.output) - assert loaded['debug'] == expected + assert _yaml.node_get(loaded, str, 'debug') == expected @pytest.mark.datafiles(DATA_DIR) |