summaryrefslogtreecommitdiff
path: root/yarns/900-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-01-22 19:57:30 +0200
committerLars Wirzenius <liw@liw.fi>2018-01-22 19:57:30 +0200
commit458f0681a0dd8abc247fe042ff462dc35ee07bc5 (patch)
tree098f9ddda7fceba766e1c4e33fd43303fb5c54fb /yarns/900-implements.yarn
parent4e97da44a1cf9dd78a4e70f59d7d057e9cbaebca (diff)
downloadick2-458f0681a0dd8abc247fe042ff462dc35ee07bc5.tar.gz
Fix: compare lists as sets
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r--yarns/900-implements.yarn4
1 files changed, 2 insertions, 2 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index b27b830..c6be689 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -159,10 +159,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
http(vars, get, url + path, token=token)
IMPLEMENTS THEN the list of builds is (.+)
- expected = json.loads(get_next_match())
+ expected = set(json.loads(get_next_match()))
print('expected', expected)
body = json.loads(vars['body'])
print('body', body)
- actual = [o['build_id'] for o in body['builds']]
+ actual = set(o['build_id'] for o in body['builds'])
print('actual', actual)
assertEqual(actual, expected)