tests: update for pytest 3.3 with merged catchlog (#20317)

This commit is contained in:
Thomas NOËL 2017-11-28 11:22:15 +01:00
parent 69c9fd57d1
commit 72caf60520
2 changed files with 3 additions and 4 deletions

View File

@ -2484,7 +2484,7 @@ def test_formdata_generated_document_odt_to_pdf_download_push_to_portfolio(pub,
resp = resp.form.submit('button_export_to')
assert http_post_request.call_count == 1
assert ('file template.pdf pushed to portfolio of foo@localhost'
== caplog.records()[-1].message)
== caplog.records[-1].message)
resp = resp.follow() # $form/$id/create_doc
resp = resp.follow() # $form/$id/create_doc/
@ -2500,7 +2500,7 @@ def test_formdata_generated_document_odt_to_pdf_download_push_to_portfolio(pub,
resp = resp.form.submit('button_export_to')
assert http_post_request.call_count == 1
assert ('file template.pdf pushed to portfolio of foo@localhost'
== caplog.records()[-1].message)
== caplog.records[-1].message)
assert resp.location == form_location
resp = resp.follow() # back to form page

View File

@ -10,10 +10,9 @@ setenv =
passenv =
USER
deps =
pytest
pytest>=3.3.0
pytest-mock
pytest-cov
pytest-catchlog
WebTest
psycopg2
mechanize