Florian Bruhin
52ced6c652
Start Xvfb for tests.
...
Fixes #851 .
2015-10-07 16:54:46 +02:00
Florian Bruhin
2c719006cf
tests: Fix skipping with multiple platform markers.
2015-10-02 10:39:21 +02:00
Florian Bruhin
240e271b0d
tests: Translate platform markers to skipif marks.
...
This means pytest shows the correct location and the marks work correctly when
marking individual items in a parametrize marker.
2015-10-02 09:26:33 +02:00
Florian Bruhin
b88a22b139
tests: Add a not_osx platform marker.
2015-10-02 08:51:40 +02:00
Florian Bruhin
9f7836131d
tests: Add a reason argument to platform markers.
2015-10-02 08:51:22 +02:00
Florian Bruhin
65891c6f0d
Fail tests on Python warnings.
...
Fixes #982 .
2015-10-01 21:34:00 +02:00
Florian Bruhin
1e5028a7f3
Allow unittests-nodisp to run w/o DISPLAY on CI.
2015-09-28 22:19:33 +02:00
Florian Bruhin
1861b0a5e4
Don't skip all tests without DISPLAY set.
...
We used qapp in a session scoped fixture, which means testing without DISPLAY
skipped all tests.
2015-09-28 21:50:44 +02:00
Florian Bruhin
d887bbeb24
Revert "standarddir: Fix runtime basedir test on OS X."
...
This reverts commit 46ac1e2bf90f1c74a1cc502e08b717715b90eb39.
2015-09-15 22:31:37 +02:00
Florian Bruhin
89b4adf158
standarddir: Fix runtime basedir test on OS X.
2015-09-15 22:31:37 +02:00
Florian Bruhin
37a2523bff
Add a py_proc fixture to conftest.py.
2015-09-09 19:39:01 +02:00
Florian Bruhin
34bd000442
Use shorter names.
...
The typical test path for a legacy FIFO was something like:
/tmp/pytest-92/test_correct_socket_name0/qutebrowser_test/qutebrowser-ipc-dfc627b5be8602ea0e9cd258b73c0bc3
This is probably too long for a Unix local domain socket (104 chars max).
2015-09-09 19:31:52 +02:00
Florian Bruhin
9d9372c6a8
Add standarddir.temp().
2015-09-09 19:31:52 +02:00
Florian Bruhin
0b911d2e20
Split integration tests, run smoke via pytest.
2015-09-01 08:54:53 +02:00
Florian Bruhin
6df00f8266
Move cookiejar_and_cache fixture to conftest.py.
2015-08-30 23:11:23 +02:00
Florian Bruhin
4f250ba5d7
tests: Allow tests to add windows to win_registry.
2015-08-24 08:00:16 +02:00
Florian Bruhin
70243d6e2f
Fix argparser test after win_registry change.
...
The last focused window was now window 1 - so we better make this explicit.
2015-08-23 22:37:27 +02:00
Florian Bruhin
9ff97d31da
tests: Provide two windows in win_registry fixture.
2015-08-23 21:55:12 +02:00
Florian Bruhin
0907d8bf76
tests: Add a webview fixture.
2015-08-23 18:17:22 +02:00
Florian Bruhin
1ddd65304a
tests: Use a real signal for ConfigStub.
2015-08-19 19:37:19 +02:00
Florian Bruhin
6d1b0ba260
Clean up conftest.py.
2015-08-18 20:43:42 +02:00
Florian Bruhin
2c5269acd6
Reorganize tests directory.
2015-08-18 20:19:02 +02:00
Florian Bruhin
d8734a668c
Add workaround for pytest-capturelog bug.
...
This should fix the tests on Windows.
See https://bitbucket.org/memedough/pytest-capturelog/issues/7/
2015-08-18 08:06:41 +02:00
Florian Bruhin
e909b1f36d
Fix lint.
2015-08-16 23:20:30 +02:00
Florian Bruhin
6656e6aa9b
Merge branch 'command-tests'
2015-08-16 22:48:07 +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
43266ac08a
webelem: Add more tests.
2015-08-03 23:40:39 +02:00
Florian Bruhin
a02055414d
Make command tests work.
2015-07-20 11:23:34 +02:00
Florian Bruhin
0037b0db7e
Actually run OS X tests on OS X.
2015-07-11 20:14:26 +02:00
Florian Bruhin
3f13c2bd3e
Add/improve tests for qutebrowser.utils.urlutils.
2015-07-06 17:10:57 +02:00
Florian Bruhin
9b264c7514
tests: Share common markers.
2015-06-28 22:58:48 +02:00
Florian Bruhin
f9876823b8
Add a new config_stub fixture.
...
This replaces various other constructs:
- The default_config fixture - this means the config values used by
test_progress.py are set explicitly and the (rather complex) default config
is mocked out.
- stubs.ConfigStub which was created by the tests manually before.
2015-05-07 22:56:31 +02:00
Bruno Oliveira
2d19708a41
Play nice with other plugins in conftest.py
...
Some plugins might create their own Item subclasses without
a `fixturenames` attribute. Discovered while taking pytest-flakes
for a spin.
2015-04-19 17:11:29 -03:00
Florian Bruhin
10214a8b83
Merge pull request #23 from hackebrot/single-qnam
...
Use a single QNetworkAccessManager per session.
2015-04-14 07:00:25 +02:00
Florian Bruhin
e8ddd9397d
Use a single QNetworkAccessManager per session.
2015-04-13 22:34:30 +02:00
Florian Bruhin
3433a1ec7a
Add tests for CommandRunner/KeyConfigParser.
2015-04-13 07:54:24 +02:00
Florian Bruhin
343a091aee
Small docstring cleanup.
2015-04-09 06:42:34 +02:00
Bruno Oliveira
d375ddebea
Add new-line at the end of conftest.py
2015-04-08 19:16:45 -03:00
Bruno Oliveira
894a2a4e7b
Add custom "gui" marker to tests which use qtbot fixture
...
Fixes #15
2015-04-08 19:14:06 -03:00
Florian Bruhin
9d44f777c0
Fix lint.
2015-04-05 20:30:31 +02:00
Bruno Oliveira
bfc99f09f9
Renamed test to tests as suggested by @The-Compiler
2015-04-05 12:23:04 -03:00