Revision 3d6ffa57
Added by koszko over 1 year ago
| test/unit/test_item_preview.py | ||
|---|---|---|
| 51 | 51 |
|
| 52 | 52 |
for string in [ |
| 53 | 53 |
*filter(lambda v: type(v) is str, sample_resource.values()), |
| 54 |
*sample_resource['dependencies'],
|
|
| 54 |
*[rr['identifier'] for rr in sample_resource['dependencies']],
|
|
| 55 | 55 |
*[c['file'] for k in ('source_copyright', 'scripts')
|
| 56 | 56 |
for c in sample_resource[k]], |
| 57 | 57 |
item_version_string(sample_resource, True) |
| ... | ... | |
| 61 | 61 |
sample_resource['identifier'] = 'hellopear' |
| 62 | 62 |
sample_resource['long_name'] = 'Hello Pear' |
| 63 | 63 |
sample_resource['description'] = 'greets a pear' |
| 64 |
sample_resource['dependencies'] = ['hello-msg'],
|
|
| 64 |
sample_resource['dependencies'] = [{'identifier': 'hello-msg'}]
|
|
| 65 | 65 |
for key in ('scripts', 'source_copyright'):
|
| 66 | 66 |
for file_ref in sample_resource[key]: |
| 67 | 67 |
file_ref['file'] = file_ref['file'].replace('.', '_')
|
Also available in: Unified diff
make resource dependency specifier an object