Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/units/model/context.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2014-02-25 10:47:27 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2014-02-25 10:47:27 (GMT)
commit7552454f28decea7fae01af1a6d4d4faa173bf88 (patch)
tree87920e0c97bde2fa4d4989705e98915641337d84 /tests/units/model/context.py
parent4dc349755c8463c8a197433126c78988c74a1b43 (diff)
Remove more ZI remains
* one command per context; * exact dependency comparing.
Diffstat (limited to 'tests/units/model/context.py')
-rwxr-xr-xtests/units/model/context.py20
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/units/model/context.py b/tests/units/model/context.py
index 8fd5b56..0990f15 100755
--- a/tests/units/model/context.py
+++ b/tests/units/model/context.py
@@ -79,10 +79,9 @@ class ContextTest(tests.Test):
'announce': next(volume['post'].find(query='title:1')[0]).guid,
'version': [[1], 0],
'requires': {},
- 'commands': {'activity': {'exec': 'true'}},
- 'spec': {'*-*': {'bundle': str(hash(bundle1))}},
+ 'command': 'true',
+ 'bundles': {'*-*': {'blob': str(hash(bundle1)), 'unpack_size': len(activity_info1)}},
'stability': 'stable',
- 'unpack_size': len(activity_info1),
},
},
}, conn.get(['context', context, 'releases']))
@@ -109,10 +108,9 @@ class ContextTest(tests.Test):
'announce': next(volume['post'].find(query='title:1')[0]).guid,
'version': [[1], 0],
'requires': {},
- 'commands': {'activity': {'exec': 'true'}},
- 'spec': {'*-*': {'bundle': str(hash(bundle1))}},
+ 'command': 'true',
+ 'bundles': {'*-*': {'blob': str(hash(bundle1)), 'unpack_size': len(activity_info1)}},
'stability': 'stable',
- 'unpack_size': len(activity_info1),
},
},
release2: {
@@ -123,10 +121,9 @@ class ContextTest(tests.Test):
'announce': next(volume['post'].find(query='title:2')[0]).guid,
'version': [[2], 0],
'requires': {},
- 'commands': {'activity': {'exec': 'true'}},
- 'spec': {'*-*': {'bundle': str(hash(bundle2))}},
+ 'command': 'true',
+ 'bundles': {'*-*': {'blob': str(hash(bundle2)), 'unpack_size': len(activity_info2)}},
'stability': 'stable',
- 'unpack_size': len(activity_info2),
},
},
}, conn.get(['context', context, 'releases']))
@@ -147,10 +144,9 @@ class ContextTest(tests.Test):
'announce': next(volume['post'].find(query='title:2')[0]).guid,
'version': [[2], 0],
'requires': {},
- 'commands': {'activity': {'exec': 'true'}},
- 'spec': {'*-*': {'bundle': str(hash(bundle2))}},
+ 'command': 'true',
+ 'bundles': {'*-*': {'blob': str(hash(bundle2)), 'unpack_size': len(activity_info2)}},
'stability': 'stable',
- 'unpack_size': len(activity_info2),
},
},
}, conn.get(['context', context, 'releases']))