summaryrefslogtreecommitdiff
path: root/src/buildstream/testing/_sourcetests
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-14 10:23:42 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:02 +0000
commit88abfbd8a29c5056eb0f089463cc28813bb172ad (patch)
treeef42bf10c430123f71a510afd889e0d3a8db8f1f /src/buildstream/testing/_sourcetests
parent50335363cd49e7945567609cf8b1273576b27667 (diff)
downloadbuildstream-88abfbd8a29c5056eb0f089463cc28813bb172ad.tar.gz
_yaml: Never create base 'Node' directly
We shouldn't have to create normal nodes ever. Let's ensure we don't
Diffstat (limited to 'src/buildstream/testing/_sourcetests')
-rw-r--r--src/buildstream/testing/_sourcetests/track.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/testing/_sourcetests/track.py b/src/buildstream/testing/_sourcetests/track.py
index 08173e79b..58679e9f1 100644
--- a/src/buildstream/testing/_sourcetests/track.py
+++ b/src/buildstream/testing/_sourcetests/track.py
@@ -327,7 +327,7 @@ def test_track_include(cli, tmpdir, datafiles, ref_storage, kind):
# Get the first source from the sources list
new_source = sources_list.mapping_at(0)
assert 'ref' in new_source
- assert ref == new_source.get_scalar('ref').as_str()
+ assert ref == new_source.get_str('ref')
@pytest.mark.datafiles(DATA_DIR)