summaryrefslogtreecommitdiff
path: root/tests/elements/filter.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/elements/filter.py')
-rw-r--r--tests/elements/filter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/elements/filter.py b/tests/elements/filter.py
index d89c834e0..8292c09bb 100644
--- a/tests/elements/filter.py
+++ b/tests/elements/filter.py
@@ -240,7 +240,7 @@ def test_filter_track(datafiles, cli, tmpdir):
# Now check that a ref field exists
new_input = _yaml.load(input_file)
source_node = _yaml.node_get(new_input, dict, 'sources', indices=[0])
- new_input_ref = _yaml.node_get(source_node, str, 'ref')
+ new_input_ref = source_node.get_str('ref')
assert new_input_ref == ref
@@ -349,7 +349,7 @@ def test_filter_track_multi_to_one(datafiles, cli, tmpdir):
# Now check that a ref field exists
new_input = _yaml.load(input_file)
source_node = _yaml.node_get(new_input, dict, 'sources', indices=[0])
- new_ref = _yaml.node_get(source_node, str, 'ref')
+ new_ref = source_node.get_str('ref')
assert new_ref == ref
@@ -414,12 +414,12 @@ def test_filter_track_multi(datafiles, cli, tmpdir):
# Now check that a ref field exists
new_input = _yaml.load(input_file)
source_node = _yaml.node_get(new_input, dict, 'sources', indices=[0])
- new_ref = _yaml.node_get(source_node, str, 'ref')
+ new_ref = source_node.get_str('ref')
assert new_ref == ref
new_input2 = _yaml.load(input2_file)
source_node2 = _yaml.node_get(new_input2, dict, 'sources', indices=[0])
- new_ref2 = _yaml.node_get(source_node2, str, 'ref')
+ new_ref2 = source_node2.get_str('ref')
assert new_ref2 == ref
@@ -487,7 +487,7 @@ def test_filter_track_multi_exclude(datafiles, cli, tmpdir):
new_input2 = _yaml.load(input2_file)
source_node2 = _yaml.node_get(new_input2, dict, 'sources', indices=[0])
- new_ref2 = _yaml.node_get(source_node2, str, 'ref')
+ new_ref2 = source_node2.get_str('ref')
assert new_ref2 == ref