Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Florian Bruhin
c1d3a94936
Don't pass through shifted characters.
...
See #1207 - turns out that was a problem for *any* character.
2016-01-04 07:10:23 +01:00
Florian Bruhin
81e1c72588
pylint: unneeded-suppression -> useless-suppression
2015-12-21 10:02:43 +01:00
Florian Bruhin
168f65b1a4
tests: Use caplog.at_level, not atLevel.
2015-12-21 09:52:33 +01:00
Florian Bruhin
9101046fe5
tests: Adjust error message comparison for Windows.
2015-12-21 09:51:25 +01:00
Florian Bruhin
95e67bba7b
Suppress pylint no-member for os.mkfifo.
2015-12-21 09:47:20 +01:00
Florian Bruhin
9f64dfb3b6
Skip all tests using py_proc when frozen.
2015-12-21 09:46:30 +01:00
Florian Bruhin
4b770f4f35
tests: Try to work around race condition.
2015-12-21 08:55:55 +01:00
Florian Bruhin
59c8e5c3d1
Add some tests for commands.userscripts.
2015-12-21 08:45:46 +01:00
Florian Bruhin
2b1622b34d
Update to pytest-bdd 2.16.0.
...
This avoids deprecation warnings emitted by python 3.5 and pytest 2.8.
2015-12-20 20:11:49 +01:00
Florian Bruhin
fc3a3ea8c6
Add missing not_frozen mark in test_guiprocess.
...
This should fix test failures when frozen.
2015-12-20 18:40:57 +01:00
Florian Bruhin
fcf94fd527
Remove various deprecated commands/arguments.
2015-12-20 18:38:29 +01:00
Florian Bruhin
6b89eb43a2
Allow any non-space char in search engine names.
...
Closes #1189 .
2015-12-20 17:22:54 +01:00
Florian Bruhin
5c769d8000
Report stdout/stderr of failed subprocesses.
2015-12-18 21:23:33 +01:00
Florian Bruhin
d3dc90cb2a
Revert "tests: Use urllib to load redirect-later-continue."
...
This reverts commit 1e43b882ae
.
Seems like this causes other trouble (the redirect-later request missing?!)
2015-12-18 20:24:03 +01:00
Florian Bruhin
1e43b882ae
tests: Use urllib to load redirect-later-continue.
...
This might avoid the EPROTOTYPE bug on OS X. See #1183 .
2015-12-18 19:57:15 +01:00
Florian Bruhin
b3e4ac8043
tests: Fix AttributeError in _wait_for_clipboard.
2015-12-18 07:18:27 +01:00
Florian Bruhin
45d6dc6aa3
tests: Hopefully fix keyinput.feature flakiness.
...
While the original "no focused webview" bug (with the first test after spawning
qutebrowser) from #1183 was fixed, we still had a case where the next test
after ":fake-key sending key to the website with other window focused" failed,
presumably because the inspector was still focused, e.g. here:
http://qutebrowser.org:8010/builders/osx/builds/1175/steps/tests/logs/stdio
This hopefully fixes this by properly waiting until the inspector is gone.
2015-12-18 07:13:16 +01:00
Florian Bruhin
172157ed0d
Remove unused import, take two.
2015-12-17 23:09:11 +01:00
Florian Bruhin
a7dee6c053
Remove unused import.
2015-12-17 22:57:16 +01:00
Florian Bruhin
fc84e58043
tests: Ignore "SelectionRequest too old" globally.
...
If we use pytestmark, it won't be ignored inside subprocess output, so our fix
from https://github.com/The-Compiler/qutebrowser/issues/1124#issuecomment-158073581
never actually worked.
See #1124 and #1183 .
2015-12-17 22:33:07 +01:00
Florian Bruhin
8786e979a6
tests: Wait for data in the clipboard.
...
This should hopefully stabilize the flaky clipboard tests.
See #1183 .
2015-12-17 22:17:38 +01:00
Florian Bruhin
e78d2a8399
tests: Check args for loadFinished signals.
2015-12-17 07:49:28 +01:00
Florian Bruhin
c1951a8f15
tests: Get rid of QSignalSpy where we can.
2015-12-17 07:49:28 +01:00
Florian Bruhin
982e78249a
tests: Clear captured output between tests.
2015-12-16 23:07:42 +01:00
Florian Bruhin
a157f822d6
tests: Handle report.longrepr being a tuple.
...
For some unknown reason, report.longrepr.addsection might not exist, which
caused failures on OS X and Windows. If that happens, we just don't add a
section at all.
2015-12-16 22:47:33 +01:00
Florian Bruhin
e6284ed5d4
tests: Improve some ugly test IDs.
2015-12-16 22:21:29 +01:00
Florian Bruhin
bba6589e19
Capture qutebrowser/httpbin output separately.
...
When using print and relying on pytest to capture it as stdout, we ran into
this pytest/pytest-qt issue:
https://github.com/pytest-dev/pytest-qt/issues/113
Now we use our own capturing mechanism instead, which also means we get nicer
output.
Fixes #1122 .
2015-12-16 21:25:13 +01:00
Florian Bruhin
7f83c6c5c8
pylint: Disable no-member for hypothesis.Settings.
...
hypothesis.Settings.default is probably created dynamically.
2015-12-15 18:57:14 +01:00
Florian Bruhin
4a58e10e09
Enable hypothesis' strict mode.
2015-12-15 18:09:52 +01:00
Florian Bruhin
fd96685b02
tests: Wait until the qutebrowser window has focus.
...
This should fix the second case in #1183 and other related flakiness in
keyinput.feature.
2015-12-15 07:43:14 +01:00
Florian Bruhin
49be07eb18
Add config read in test_default_config.
...
For some reason this was failing on OS X/Travis otherwise?
2015-12-11 22:17:51 +01:00
Florian Bruhin
d267cbd44f
tests: Require qapp for test_old_config.
2015-12-11 18:16:46 +01:00
Florian Bruhin
202bf59edc
Add tests for renamed/deleted config options.
...
See #1171 .
2015-12-11 08:50:26 +01:00
Florian Bruhin
ec06247327
Add tests to check upgrades from old configs.
...
See #1171 .
2015-12-11 08:50:26 +01:00
Florian Bruhin
10dd1b50b9
Split ConfigManager.read from constructor.
2015-12-11 08:50:26 +01:00
dylan araps
1bc8d10ac7
Added config option to change tab title alignment
2015-12-07 19:43:43 +11:00
Florian Bruhin
e68965fea2
bdd: Wait for help pages to be loaded in tests.
...
This hopefully fixes #1150 .
2015-12-02 22:22:31 +01:00
Florian Bruhin
4170e3c9af
bdd: Simplify qute:settings test.
2015-12-02 22:19:43 +01:00
Florian Bruhin
d418f7f9fa
Merge branch 'caret_mode_windows_osx' of https://github.com/artur-shaik/qutebrowser into artur-shaik-caret_mode_windows_osx
2015-12-02 06:22:27 +01:00
Panagiotis Ktistakis
6e8ac374dd
Add tests for :tab-move wrapping.
2015-12-02 03:35:25 +02:00
Panagiotis Ktistakis
de3460da3e
Wrap tabs on :tab-move +/- if tabs->wrap is true.
2015-12-02 03:17:54 +02:00
Florian Bruhin
eff0e4c7cc
pylint: Enable useless-suppression globally.
...
We deactivate it locally where needed, i.e. where we are sure it's some
platform-specific thing.
2015-12-01 23:01:09 +01:00
Florian Bruhin
cf54fa1ef1
pylint: Remove some now useless suppressions.
2015-12-01 23:00:48 +01:00
Florian Bruhin
b3515f5e82
pylint: Remove import-error disabling from tests.
2015-12-01 22:47:10 +01:00
Florian Bruhin
5817b47f75
Revert "Use fully qualified imports in tests."
...
Seems like this also breaks frozen tests...
This reverts commit c7fdcc92b8
.
2015-12-01 22:45:59 +01:00
Florian Bruhin
109984c96e
pylint: Check attr-defined-outside-init for tests.
2015-12-01 22:41:16 +01:00
Florian Bruhin
803398c49b
Use some more fixtures for older tests.
2015-12-01 22:40:58 +01:00
Florian Bruhin
c7fdcc92b8
Use fully qualified imports in tests.
...
This is cleaner even if pylint can't handle it.
2015-12-01 22:03:59 +01:00
Florian Bruhin
788a096150
pylint: Ignore import-error globally for tests.
2015-12-01 22:03:59 +01:00