Revision 7f59d209
b/ci/pep8.sh | ||
---|---|---|
2 | 2 |
|
3 | 3 |
# Files to be excluded from pep8 tests |
4 | 4 |
EXCLUDE=migrations,build,setup,distribute_setup.py,\ |
5 |
setup.py,rapi.py,dictconfig.py,ordereddict.py |
|
5 |
setup.py,rapi.py,dictconfig.py,ordereddict.py,parsedate.py
|
|
6 | 6 |
|
7 | 7 |
# Keep only *.py files |
8 | 8 |
py_files=$(echo "$@" | awk '/.*\.py/' RS=" " ORS=" ") |
b/snf-django-lib/snf_django/utils/testing.py | ||
---|---|---|
144 | 144 |
} |
145 | 145 |
} |
146 | 146 |
} |
147 |
with patch('astakosclient.AstakosClient.issue_one_commission') as m3: |
|
147 |
issue_fun = "astakosclient.AstakosClient.issue_one_commission" |
|
148 |
with patch(issue_fun) as m3: |
|
148 | 149 |
serials = [] |
149 | 150 |
append = serials.append |
150 | 151 |
|
... | ... | |
155 | 156 |
return serial |
156 | 157 |
|
157 | 158 |
m3.side_effect = get_serial |
158 |
with patch('astakosclient.AstakosClient.resolve_commissions') as m4: |
|
159 |
resolv_fun = \ |
|
160 |
'astakosclient.AstakosClient.resolve_commissions' |
|
161 |
with patch(resolv_fun) as m4: |
|
159 | 162 |
m4.return_value = {'accepted': serials, |
160 | 163 |
'rejected': [], |
161 | 164 |
'failed': []} |
162 |
with patch('astakosclient.AstakosClient.get_usernames') as m5: |
|
165 |
users_fun = 'astakosclient.AstakosClient.get_usernames' |
|
166 |
with patch(users_fun) as m5: |
|
163 | 167 |
|
164 | 168 |
def get_usernames(*args, **kwargs): |
165 | 169 |
uuids = args[-1] |
Also available in: Unified diff