summaryrefslogtreecommitdiff
path: root/tests/end2end/features/test_history_bdd.py
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2017-09-19 10:35:54 +0200
committerFlorian Bruhin <git@the-compiler.org>2017-09-19 10:35:54 +0200
commit55a4eb18f2a619562b29b17a13538192edad53c5 (patch)
tree0ac78f3994fa15eab6f0b26270540ede8c952a19 /tests/end2end/features/test_history_bdd.py
parent40b26d749276f9f48aa790a97e51a47618397cc1 (diff)
downloadqutebrowser-55a4eb18f2a619562b29b17a13538192edad53c5.tar.gz
qutebrowser-55a4eb18f2a619562b29b17a13538192edad53c5.zip
Get rid of httpbin
Fixes #2949
Diffstat (limited to 'tests/end2end/features/test_history_bdd.py')
-rw-r--r--tests/end2end/features/test_history_bdd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/end2end/features/test_history_bdd.py b/tests/end2end/features/test_history_bdd.py
index debf72d09..8bdd8c396 100644
--- a/tests/end2end/features/test_history_bdd.py
+++ b/tests/end2end/features/test_history_bdd.py
@@ -35,7 +35,7 @@ def turn_on_sql_history(quteproc):
@bdd.then(bdd.parsers.parse("the history should contain:\n{expected}"))
-def check_history(quteproc, httpbin, tmpdir, expected):
+def check_history(quteproc, server, tmpdir, expected):
path = tmpdir / 'history'
quteproc.send_cmd(':debug-dump-history "{}"'.format(path))
quteproc.wait_for(category='message', loglevel=logging.INFO,
@@ -45,10 +45,10 @@ def check_history(quteproc, httpbin, tmpdir, expected):
# ignore access times, they will differ in each run
actual = '\n'.join(re.sub('^\\d+-?', '', line).strip() for line in f)
- expected = expected.replace('(port)', str(httpbin.port))
+ expected = expected.replace('(port)', str(server.port))
assert actual == expected
@bdd.then("the history should be empty")
-def check_history_empty(quteproc, httpbin, tmpdir):
- check_history(quteproc, httpbin, tmpdir, '')
+def check_history_empty(quteproc, server, tmpdir):
+ check_history(quteproc, server, tmpdir, '')