Florian Bruhin
dacf2cace2
Fix line length.
2015-08-02 01:57:16 +02:00
Florian Bruhin
49f017c0dd
Fix mainwindow.statusbar.percentage tests.
2015-08-02 01:53:30 +02:00
Florian Bruhin
fc09d63eb1
Fix lint.
2015-08-02 01:46:32 +02:00
Florian Bruhin
f21cffd9b8
100% coverage for mainwindow.statusbar.percentage.
2015-08-02 01:45:19 +02:00
Florian Bruhin
9db0e03f05
Add some tests for config.configexc.
2015-08-02 01:31:43 +02:00
Florian Bruhin
e94e90baec
Add some tests for config.configdata.
2015-08-02 00:59:13 +02:00
Florian Bruhin
26f6bb7d0d
Rewrite browser.test_tabhistory.py for pytest.
2015-08-02 00:34:04 +02:00
Florian Bruhin
0e25f5c730
Use a fake process for test_cmd_args.
...
This should fix the teardown exception (because the message module is not
patched anymore) with the new pytest-qt version.
2015-08-01 23:50:29 +02:00
Florian Bruhin
52d7a5693f
Fix lint.
2015-08-01 13:47:42 +02:00
Florian Bruhin
fa131e3290
Test urlutils.same_domain with invalid URLs.
2015-08-01 13:45:51 +02:00
Florian Bruhin
336b7de6d4
Clean up same_domain tests.
2015-08-01 13:23:03 +02:00
Florian Bruhin
27f65be860
Merge branch 'referer-header' of https://github.com/Carpetsmoker/qutebrowser into Carpetsmoker-referer-header
...
Conflicts:
tests/utils/test_urlutils.py
2015-08-01 12:44:57 +02:00
Florian Bruhin
451477593f
Always require 4 values for padding.
2015-08-01 00:34:09 +02:00
Florian Bruhin
452c4115d3
Add a Padding config type.
2015-07-31 15:38:41 +02:00
Florian Bruhin
c750ff3f50
configtypes: Handle invalid format syntax.
2015-07-26 13:56:46 +02:00
Florian Bruhin
4bdf00b148
configtypes: Handle {1} correctly.
2015-07-26 13:56:40 +02:00
Florian Bruhin
694fbe053d
Fix lint.
2015-07-24 18:11:52 +02:00
Florian Bruhin
44bf4ae883
configtypes: Fix ' ' value with Command.
2015-07-24 17:56:12 +02:00
Florian Bruhin
ebdfa0be73
Add hypothesis tests for configtypes.
...
See #830 .
2015-07-24 17:49:09 +02:00
Florian Bruhin
b19852b6e7
configtypes: Add _basic_validation() to BaseType.
...
This has a few implications:
- Checking for empty/none_ok is now easier as _basic_validation() does this.
- To make things easier, WebKitBytes and WebKitBytesList now need to have
none_ok passed as well instead of assuming True.
- _basic_validation() checks for unprintable chars and raises ValidationError
if they occur, so this gets checked for all types.
2015-07-24 17:39:02 +02:00
Florian Bruhin
dfba381b57
Fix broken utils.version test.
2015-07-24 13:53:26 +02:00
Florian Bruhin
5643b14987
configtypes: Add test for UserAgent.complete().
2015-07-24 00:29:12 +02:00
Florian Bruhin
cc6602926f
configtypes: Add tests for ConfirmQuit.
2015-07-24 00:24:17 +02:00
Florian Bruhin
b3755f4ca1
configtypes: Add tests for SessionName.
2015-07-24 00:11:52 +02:00
Florian Bruhin
e145d73852
configtypes: Add a MappingType base class.
2015-07-24 00:11:52 +02:00
Florian Bruhin
0b1704d829
configtypes: Add a __repr__ to ValidValues.
2015-07-24 00:11:52 +02:00
Florian Bruhin
8f48247b8f
configtypes: Add invalid URL for TestUrlList.
2015-07-24 00:11:52 +02:00
Florian Bruhin
71188bb67b
configtypes: Simplify UrlList tests.
2015-07-23 23:14:20 +02:00
Florian Bruhin
e4c7e70aba
configtypes: Fix ColorTests parametrization.
2015-07-23 21:33:16 +02:00
Florian Bruhin
fb6bf5c34f
configtypes: Change tests to not subclass.
2015-07-23 20:55:27 +02:00
Florian Bruhin
41333cd6e1
configtypes: Add some additional tests.
2015-07-23 16:58:21 +02:00
Florian Bruhin
eb28365d82
configtypes: Add os.path.join emulation to os_mock.
2015-07-23 16:57:42 +02:00
Florian Bruhin
cf5296ebb5
configtypes: Fix broken Command test.
2015-07-23 14:41:29 +02:00
Florian Bruhin
75991e1f87
configtypes: Add tests for BoolAsk.
2015-07-23 14:41:14 +02:00
Florian Bruhin
23583b7d48
Refactor test_configtypes for pytest.
2015-07-23 12:37:14 +02:00
Florian Bruhin
ca5a78dfc7
Attach numerical code to Qt OSErrors and fix tests.
...
This fixes tests with tox < 2.0.0 on systems with a non-english locale, as it's
no longer the errorString which gets compared.
Fixes #806 .
2015-07-12 11:20:28 +02:00
Florian Bruhin
0037b0db7e
Actually run OS X tests on OS X.
2015-07-11 20:14:26 +02:00
Florian Bruhin
e010d3dabc
Fix os.path patching in tests.
...
Fixes #802 .
2015-07-06 18:50:34 +02:00
Florian Bruhin
20ff7e702a
Increase all test_guiprocess timeouts.
...
Windows is fscking slow...
2015-07-06 18:04:54 +02:00
Florian Bruhin
c5b75b0b16
Merge remote-tracking branch 'origin/usertypes-tests'
2015-07-06 17:58:13 +02:00
Florian Bruhin
382b52a0b8
Merge remote-tracking branch 'origin/urlutils-tests'
2015-07-06 17:58:06 +02:00
Florian Bruhin
cef350ad66
tests: Use multiple pytest.mark.parametrize calls.
2015-07-06 17:56:13 +02:00
Florian Bruhin
a0a7f9feda
Skip test_file_absolute_expanded on Windows.
2015-07-06 17:22:52 +02:00
Florian Bruhin
3f13c2bd3e
Add/improve tests for qutebrowser.utils.urlutils.
2015-07-06 17:10:57 +02:00
Florian Bruhin
aa1bf00274
Add tests for usertypes.Question.
2015-07-06 14:34:47 +02:00
Florian Bruhin
1533108ca6
Add tests for usertypes.Timer.
2015-07-02 21:10:56 +02:00
Florian Bruhin
b02867fe37
Improve enum tests.
2015-07-02 21:10:56 +02:00
Florian Bruhin
4e0d00098c
Improve NeighborList tests.
2015-07-02 21:10:56 +02:00
Florian Bruhin
1672399252
Remove unused imports.
2015-06-28 23:20:56 +02:00
Florian Bruhin
9b264c7514
tests: Share common markers.
2015-06-28 22:58:48 +02:00