qutebrowser/tests/integration
Florian Bruhin 25ecd9068c tests: Don't wait for the same line twice.
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
2015-11-06 07:02:17 +01:00
..
data Add some bdd tests for scrolling. 2015-11-03 22:42:25 +01:00
features bdd: Wait until title is loaded in yankpaste. 2015-11-05 08:03:03 +01:00
conftest.py Run new qutebrowser instance for each test. 2015-11-01 22:40:11 +01:00
quteprocess.py tests: Use a base class for testprocess lines. 2015-11-06 07:02:17 +01:00
test_quteprocess.py Ignore messages which are in qt_log_ignore. 2015-11-02 06:19:19 +01:00
test_smoke.py tests: First steps towards end-to-end tests. 2015-11-01 22:40:11 +01:00
test_testprocess.py tests: Don't wait for the same line twice. 2015-11-06 07:02:17 +01:00
test_webserver.py Use httpbin.Request namedtuple for comparisons. 2015-11-01 22:40:11 +01:00
testprocess.py tests: Don't wait for the same line twice. 2015-11-06 07:02:17 +01:00
webserver_sub.py Rename webserver.py to webserver_sub.py. 2015-09-18 20:08:31 +02:00
webserver.py Use httpbin.Request namedtuple for comparisons. 2015-11-01 22:40:11 +01:00