Revision de73876b kamaki/cli/commands/test_cli.py
b/kamaki/cli/commands/test_cli.py | ||
---|---|---|
156 | 156 |
|
157 | 157 |
l2 = [d2, l1, d1] |
158 | 158 |
|
159 |
d3 = {'dict 1': d1, 'dict 2': d2, 'list2': l2,
|
|
160 |
'long key of size 75 characters is used to' +\
|
|
161 |
' check the effects on total result': l1}
|
|
159 |
spr_msg = 'long key of size 75 characters is used to check the effects on'
|
|
160 |
spr_msg += ' total result for long messages that drive pep8 completely mad'
|
|
161 |
d3 = {'dict 1': d1, 'dict 2': d2, 'list2': l2, spr_msg: l1}
|
|
162 | 162 |
|
163 | 163 |
@errors.generic.all |
164 | 164 |
def _run(self): |
... | ... | |
191 | 191 |
print_list(self.l2, with_enumeration=True) |
192 | 192 |
print('- - -\n') |
193 | 193 |
print('\nTest print_items with id:\n- - -') |
194 |
print_items([{'id': '42', 'title': 'lalakis 1', 'content': self.d1}, |
|
194 |
print_items([ |
|
195 |
{'id': '42', 'title': 'lalakis 1', 'content': self.d1}, |
|
195 | 196 |
{'id': '142', 'title': 'lalakis 2', 'content': self.d2}]) |
196 | 197 |
print('- - -') |
197 | 198 |
print('\nTest print_items with id and enumeration:\n- - -') |
198 |
print_items([{'id': '42', 'title': 'lalakis 1', 'content': self.d1}, |
|
199 |
{'id': '142', 'title': 'lalakis 2', 'content': self.d2}], |
|
199 |
print_items([ |
|
200 |
{'id': '42', 'title': 'lalakis 1', 'content': self.d1}, |
|
201 |
{'id': '142', 'title': 'lalakis 2', 'content': self.d2}], |
|
200 | 202 |
with_enumeration=True) |
201 | 203 |
print('- - -') |
202 | 204 |
print('\nTest print_items with id, title and redundancy:\n- - -') |
203 |
print_items([{'id': '42', 'title': 'lalakis 1', 'content': self.d1}, |
|
204 |
{'id': '142', 'title': 'lalakis 2', 'content': self.d2}], |
|
205 |
print_items([ |
|
206 |
{'id': '42', 'title': 'lalakis 1', 'content': self.d1}, |
|
207 |
{'id': '142', 'title': 'lalakis 2', 'content': self.d2}], |
|
205 | 208 |
title=('id', 'title'), |
206 | 209 |
with_redundancy=True) |
207 | 210 |
print('- - -') |
Also available in: Unified diff