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
Florian Bruhin
6dbac1c047
Rewrite version.version() tests and test short arg.
2015-06-26 22:37:00 +02:00
Florian Bruhin
75b894a186
Include DESKTOP_SESSION in qute:version.
2015-06-24 20:54:37 +02:00
Florian Bruhin
220ac021f0
Print style name in version info.
2015-06-24 20:37:48 +02:00
Florian Bruhin
24424a0486
Fix expected qWarning messages for Qt 5.5.
2015-06-24 20:30:26 +02:00
Florian Bruhin
db267ae195
tests: Increase timeout for starting processes.
...
Windows can be slow...
2015-06-24 18:32:56 +02:00
Florian Bruhin
b7c3e7b959
Disallow {foo} in search engine URLs.
...
This causes an KeyError otherwise when trying to use str.format to insert the
search term.
2015-06-24 07:46:15 +02:00
Florian Bruhin
a5610fd6da
Fix TestReadFile when frozen.
2015-06-19 09:40:26 +02:00
Florian Bruhin
85f6b3c6df
Fix TestGitStr when frozen.
2015-06-19 09:40:26 +02:00
Florian Bruhin
08c8a5f7dd
Skip tests which need sys.executable when frozen.
...
See #770
2015-06-19 09:40:26 +02:00
Florian Bruhin
3de1299650
tests: Use utils.read_file to get javascript files.
...
This will make those tests pass when frozen.
See #770 .
2015-06-18 21:09:10 +02:00
Florian Bruhin
b1334bcc22
Use repr() for unknown objects in utils.qualname.
2015-06-17 06:46:03 +02:00
Florian Bruhin
219c2f8ae8
Ignore "Unable to set geometry" warnings in tests.
...
This reverts commits 9b066ec50a
and
83f7cf84a9
.
This was still broken even after setting the geometry:
https://ci.appveyor.com/project/The-Compiler/qutebrowser
2015-06-12 17:04:12 +02:00
Florian Bruhin
8033931bae
Test key_to_string with all Qt.Key members.
2015-06-12 16:37:07 +02:00
Florian Bruhin
9b066ec50a
Set geometry in test_textbase.py.
...
See 83f7cf84a9
- it seems with the Qt 5.4.2
upgrade there are some more warnings on Windows.
2015-06-12 13:44:10 +02:00