25ecd9068c
We need to search for lines in the history because we could miss something otherwise, but for subsequent wait_for calls, we really don't want to wait for the same thing again. This should make test_backforward.py more stable as it *actually* waits when going back now. Before, it did produce failures such as this one on OS X: ____________________________ test_going_backforward ____________________________ [..] @bdd.then(bdd.parsers.parse("The requests should be:\n{pages}")) def list_of_loaded_pages(httpbin, pages): requests = [httpbin.Request('GET', '/' + path.strip()) for path in pages.split('\n')] > assert httpbin.get_requests() == requests E assert [Request(verb...rward/1.txt')] == [Request(verb=...rward/2.txt')] E At index 3 diff: Request(verb='GET', path='/data/backforward/1.txt') != Request(verb='GET', path='/data/backforward/2.txt') E Full diff: E [Request(verb='GET', path='/data/backforward/1.txt'), E Request(verb='GET', path='/data/backforward/2.txt'), E Request(verb='GET', path='/data/backforward/1.txt'), E - Request(verb='GET', path='/data/backforward/1.txt')] E ? ^ E + Request(verb='GET', path='/data/backforward/2.txt')] E ? ^ tests/integration/features/conftest.py:85: AssertionError |
||
---|---|---|
.. | ||
data | ||
features | ||
conftest.py | ||
quteprocess.py | ||
test_quteprocess.py | ||
test_smoke.py | ||
test_testprocess.py | ||
test_webserver.py | ||
testprocess.py | ||
webserver_sub.py | ||
webserver.py |