Skip to content

Commit 41fe490

Browse files
committed
Adapt tests
1 parent bc2c0e0 commit 41fe490

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/framework/type_checking.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ def test_check_type_of_param_value_deps(self):
101101
[{'name': 'foo', 'version': '1.2.3', 'versionsuffix': '', 'toolchain': {'name': 'GCC', 'version': '4.7'}}],
102102
[{'name': 'foo', 'version': '1.2.3', 'toolchain': {'name': 'GCC', 'version': '4.7'}}],
103103
[{'name': 'foo', 'version': '1.2.3'}, {'name': 'bar', 'version': '3.4.5'}],
104+
[('foo', '1.2.3')],
105+
[('foo', '1.2.3'), ('bar', '2')],
106+
[[('foo', '1.2.3')], [('foo', '3.2.1')]], # Iterated dependencies
104107
]
105108
for inp in inputs:
106109
self.assertEqual(check_type_of_param_value('dependencies', inp), (True, inp))
@@ -110,8 +113,8 @@ def test_check_type_of_param_value_deps(self):
110113
[{'name': 'foo'}],
111114
['foo,1.2.3'],
112115
[{'foo': '1.2.3'}],
113-
[('foo', '1.2.3')],
114-
[{'name': 'foo', 'version': '1.2.3'}, ('bar', '3.4.5')],
116+
[['foo', '1.2.3']],
117+
[{'name': 'foo', 'version': '1.2.3'}, ['bar', '3.4.5']],
115118
[{'name': 'foo', 'version': '1.2.3', 'somekey': 'wrong'}],
116119
]
117120
for inp in inputs:

0 commit comments

Comments
 (0)