Florian Bruhin
|
14545a3a22
|
Mark some tests as integration and no coverage.
|
2015-08-11 19:36:27 +02:00 |
|
Florian Bruhin
|
0f47ef17a5
|
Make test_get_all_objects_qapp work on Windows.
|
2015-08-11 19:29:30 +02:00 |
|
Florian Bruhin
|
68f80c602b
|
Remove unused import.
|
2015-08-11 19:23:29 +02:00 |
|
Florian Bruhin
|
55bf555bfb
|
Mark test_get_all_objects_qapp to use qapp.
|
2015-08-11 18:14:17 +02:00 |
|
Florian Bruhin
|
52ec9ed28f
|
Move get_all_objects() tests into a class.
|
2015-08-11 18:13:02 +02:00 |
|
Florian Bruhin
|
bf156cf554
|
Mock out QApplication.allWidgets.
This could return widgets which are still alive from previous tests, so it's
not reliable.
|
2015-08-11 18:08:11 +02:00 |
|
Florian Bruhin
|
5bd55cb38b
|
Fix lint.
|
2015-08-11 17:16:58 +02:00 |
|
Florian Bruhin
|
2d8aaecd65
|
100% coverage for utils.debug.
|
2015-08-11 17:11:00 +02:00 |
|
Florian Bruhin
|
7412e4f723
|
Reorganize utils.debug tests and add some more.
|
2015-08-11 07:41:25 +02:00 |
|
Florian Bruhin
|
69f6822c82
|
Fix lint.
|
2015-08-09 23:09:48 +02:00 |
|
Florian Bruhin
|
2fe1bcfc2b
|
Skip GUI tests when no DISPLAY is available.
Fixes #851.
|
2015-08-09 22:45:24 +02:00 |
|
Florian Bruhin
|
c4ebfcd4b3
|
Make tests fail on unexpected logging messages.
|
2015-08-09 20:00:36 +02:00 |
|
Florian Bruhin
|
fe3eb30892
|
Reorganize exceptions in urlutils.
- Instead of ValueError, a new InvalidUrlError is raised with invalid URLs.
- FuzzyUrlError got removed as it's basically the same as InvalidUrlError.
|
2015-08-09 18:48:32 +02:00 |
|
Daniel
|
bb6d6e51f6
|
Remove trailing whitespace in test_urlutils.py
|
2015-08-08 13:59:43 +02:00 |
|
Daniel
|
72c65a812f
|
Move incdec_number tests to own class
and add tests for numbers in anchors
|
2015-08-08 13:47:17 +02:00 |
|
Daniel
|
9e98ab181a
|
Add URL validity check + tests to incdec_number
|
2015-08-08 00:57:16 +02:00 |
|
Daniel
|
c4c3a83ac0
|
rename url_incdec_number to incdec_number
|
2015-08-08 00:57:16 +02:00 |
|
Daniel
|
276b163e0d
|
Move logic from _navigate_incdec to urlutils
Also add unittests for url_incdec_number
|
2015-08-07 18:48:07 +02:00 |
|
Florian Bruhin
|
01f71e980d
|
pylint: Ignore import-error.
|
2015-08-07 00:16:37 +02:00 |
|
Florian Bruhin
|
8aab87e2a2
|
Don't readd capturelog handler after log tests.
I don't really know why, but doing that ends up with something calling
sys.stdout.close()...
Fixes #856.
|
2015-08-07 00:09:02 +02:00 |
|
Florian Bruhin
|
aa1ea9b063
|
Use parametrization for TestKeyToString:test_all.
This generates a lot of tests, but is more stable than our current approach.
|
2015-08-06 23:43:53 +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
|
dfba381b57
|
Fix broken utils.version test.
|
2015-07-24 13:53:26 +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
|
e010d3dabc
|
Fix os.path patching in tests.
Fixes #802.
|
2015-07-06 18:50:34 +02:00 |
|
Florian Bruhin
|
c5b75b0b16
|
Merge remote-tracking branch 'origin/usertypes-tests'
|
2015-07-06 17:58: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 |
|
Martin Tournoij
|
a346644c71
|
Changed:
- same_domain: If the tld is unknown, only return True if the hostnames are the same
- Fix when starting without an open page
|
2015-06-27 21:15:54 +02:00 |
|
Martin Tournoij
|
f806eefba6
|
Merge branch 'master' into referer-header
|
2015-06-27 20:43:54 +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
|
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
|
b1334bcc22
|
Use repr() for unknown objects in utils.qualname.
|
2015-06-17 06:46:03 +02:00 |
|
Florian Bruhin
|
8033931bae
|
Test key_to_string with all Qt.Key members.
|
2015-06-12 16:37:07 +02:00 |
|
Florian Bruhin
|
3e8a394217
|
Disable no-member for pylint for os.SEEK_*.
This should fix pylint on Windows.
|
2015-06-11 10:49:06 +02:00 |
|
Florian Bruhin
|
480c4e878e
|
Ignore pylint warning on Ubuntu/Travis.
|
2015-06-11 10:26:18 +02:00 |
|