diff options
author | Philipp Albrecht <palbrecht@mailbox.org> | 2023-08-23 09:27:31 +0200 |
---|---|---|
committer | Philipp Albrecht <palbrecht@mailbox.org> | 2023-08-23 09:27:31 +0200 |
commit | 21751603b48b507b1216479b05c0bfc711c1cdd9 (patch) | |
tree | 468687c5bd34a2c3b2e46036cb6c769f796a4fc1 | |
parent | 42dfc82fb875a7cbeb15cdf10f00deaf01dd921e (diff) | |
download | qutebrowser-21751603b48b507b1216479b05c0bfc711c1cdd9.tar.gz qutebrowser-21751603b48b507b1216479b05c0bfc711c1cdd9.zip |
Support opening file:// URLs in end2end tests
This is required to use BDD steps like the following:
```
When I open file://path/to/file.html
```
If we don't treat `file:` as a special scheme, we implicitly convert it to an invalid
URL:
```
http://localhost:48595/file:///path/to/file.html
```
-rw-r--r-- | tests/end2end/fixtures/quteprocess.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/end2end/fixtures/quteprocess.py b/tests/end2end/fixtures/quteprocess.py index a3929ed7e..cf00c38da 100644 --- a/tests/end2end/fixtures/quteprocess.py +++ b/tests/end2end/fixtures/quteprocess.py @@ -393,7 +393,7 @@ class QuteProc(testprocess.Process): verbatim. """ special_schemes = ['about:', 'qute:', 'chrome:', 'view-source:', - 'data:', 'http:', 'https:'] + 'data:', 'http:', 'https:', 'file:'] server = self.request.getfixturevalue('server') server_port = server.port if port is None else port |