0014-misc-pylint-fix-misplaced-comparison-constant-52630.patch
tests/form_pages/test_formdata.py | ||
---|---|---|
745 | 745 |
resp = resp.form.submit('button_export_to') |
746 | 746 |
assert http_post_request.call_count == 1 |
747 | 747 |
if locale.getpreferredencoding() == 'UTF-8': |
748 |
assert "file 'template.pdf' pushed to portfolio of 'Foo Baré'" == caplog.records[-1].message
|
|
748 |
assert caplog.records[-1].message == "file 'template.pdf' pushed to portfolio of 'Foo Baré'"
|
|
749 | 749 |
else: # Python < 3.7 |
750 |
assert "file 'template.pdf' pushed to portfolio of 'Foo Bar\xe9'" == caplog.records[-1].message
|
|
750 |
assert caplog.records[-1].message == "file 'template.pdf' pushed to portfolio of 'Foo Bar\xe9'"
|
|
751 | 751 | |
752 | 752 |
resp = resp.follow() # $form/$id/create_doc |
753 | 753 |
resp = resp.follow() # $form/$id/create_doc/ |
tests/test_misc.py | ||
---|---|---|
193 | 193 | |
194 | 194 | |
195 | 195 |
def test_parse_isotime(): |
196 |
assert 1420107019 == parse_isotime('2015-01-01T10:10:19Z')
|
|
197 |
assert 1420107019 == parse_isotime('2015-01-01T10:10:19+00:00Z')
|
|
196 |
assert parse_isotime('2015-01-01T10:10:19Z') == 1420107019
|
|
197 |
assert parse_isotime('2015-01-01T10:10:19+00:00Z') == 1420107019
|
|
198 | 198 |
with pytest.raises(ValueError): |
199 | 199 |
parse_isotime('2015-01-01T10:10:19') |
200 | 200 |
with pytest.raises(ValueError): |
201 |
- |