Florian Bruhin
2df971a79c
Move short_tmpdir fixture to conftest.py
2016-09-09 18:46:51 +02:00
Florian Bruhin
df3733af54
tests: Use pytest.fixture instead of yield_fixture
...
See #1877
2016-08-22 07:40:24 +02:00
Florian Bruhin
483072d842
Don't use QSignalSpy in IPC test
...
Fixes #1727 .
For another testcase in the same file we still need to use it until
pytest-qt has a MultiSignalBlocker.args.
2016-08-02 12:45:30 +02:00
Florian Bruhin
4bf94f3c24
Use order='strict' with qtbot.waitSignals
...
See #1702
2016-07-29 09:12:06 +02:00
Florian Bruhin
2136d00aa2
tests: Add a fake_args fixture
2016-07-10 17:04:25 +02:00
Florian Bruhin
5311576c34
Check pep257 via flake8.
...
We'll still keep the pydocstyle environment though until flake8-pep257 adds
support for that:
https://github.com/Robpol86/flake8-pep257/issues/6
2016-02-10 19:18:47 +01:00
Florian Bruhin
526441bcae
Fix new flake8 lint.
...
For some reason these issues weren't shown with pytest-pep8/flakes.
2016-01-22 17:33:58 +01:00
Florian Bruhin
ff2024a565
Add socket IDs to ipc debug messages.
2016-01-08 12:02:36 +01:00
Florian Bruhin
9ed79ad57d
tests: Switch to qtbot.assertNotEmitted.
2016-01-08 10:00:42 +01:00
Florian Bruhin
1fb34331e5
tests: Default to raising=True for qtbot.
...
- qtbot.waitSignal with raising=True is the default this way, so we remove the
raising=True.
- qtbot.waitSignal with raising=False stay untouched
- Some qtbot.waitSignal without raising had one added (because we don't want it
to raise)
- Some qtbot.waitSignal without raising actually should've raised, which they
do now.
2016-01-08 09:49:06 +01:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Florian Bruhin
9f64dfb3b6
Skip all tests using py_proc when frozen.
2015-12-21 09:46:30 +01:00
Florian Bruhin
c1951a8f15
tests: Get rid of QSignalSpy where we can.
2015-12-17 07:49:28 +01: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
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
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
150a83d8f4
pylint: Remove unneeded supressions.
2015-12-01 22:03:58 +01:00
Florian Bruhin
196d1e95be
tests: Skip test_normal_connection IPC test on OS X.
...
Seems like it hangs there sometimes.
2015-11-23 20:33:11 +01:00
Florian Bruhin
40c7990d3a
tests: Skip ipc TestSendToRunningInstance on OS X.
...
This did hang often on OS X, and I don't have the time to properly debug this.
See #1045 .
2015-11-12 22:17:37 +01:00
Florian Bruhin
416cfaf002
tests: Switch from pytest-capturelog to catchlog.
2015-11-11 19:57:03 +01:00
Florian Bruhin
0d67cff5cb
Merge branch 'bdd'
...
Conflicts:
tests/test_conftest.py
tox.ini
2015-11-02 06:36:30 +01:00
Florian Bruhin
4451165a27
Change IPC warnings to debug.
...
This seems to show up on Ubuntu Trusty (with older Qt) as well...
2015-11-01 23:11:42 +01:00
Florian Bruhin
c85aa40073
Skip connected_socket IPC tests on OS X.
...
Fixes #1045 - I don't have the time to look into this :-/
2015-10-26 09:04:41 +01:00
Florian Bruhin
129df05932
ipc: Skip socketOptions test on Qt < 5.4.
2015-10-07 22:04:30 +02:00
Florian Bruhin
7db1f65425
ipc: Avoid using QLocalServer.setSocketOptions.
...
This causes problems with AddressInUseError being swallowed.
Fixes #997 .
2015-10-07 21:52:09 +02:00
Jonas Schürmann
afc166a13e
Coding style fixes #1002
2015-10-06 22:59:49 +02:00
Jonas Schürmann
45c9768c16
Added --target command line argument #922
...
This argument is used to override the new-instance-open-target config
option.
2015-10-05 21:15:52 +02:00
Florian Bruhin
d229e90724
Fix some splelling mistakes.
2015-10-04 15:41:42 +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
18bd20e109
Skip test_ipc:test_timeout on OS X.
...
It almost always causes issues and I have no idea why... Let's skip it for now.
Fixes #975 .
2015-10-02 08:52:51 +02:00
Florian Bruhin
9f7836131d
tests: Add a reason argument to platform markers.
2015-10-02 08:51:22 +02:00
Florian Bruhin
4854ca42fd
Fix tests without DISPLAY.
2015-09-28 21:50:55 +02:00
Florian Bruhin
a4569b11ad
tests: Skip test_stale_legacy_server when frozen.
2015-09-17 22:02:12 +02:00
Florian Bruhin
fbf9c74752
tests: Increase some timeouts for OS X.
2015-09-17 21:22:35 +02:00
Florian Bruhin
7e84a1a5b8
Fix lint.
2015-09-17 20:02:39 +02:00
Florian Bruhin
0f69487f22
Adjust pylint ignores for py.path.
...
Since db513aa
pylint can now import py, but fails because it can't infer that
there's a py.path.
2015-09-17 19:12:28 +02:00
Florian Bruhin
0fa9da56bf
Revert "ipc tests: Speed up TestListen::test_atime_update."
...
This reverts commit 443a2e1657
.
We actually need to wait a bit to make sure the atime is updated.
2015-09-16 07:16:14 +02:00
Florian Bruhin
443a2e1657
ipc tests: Speed up TestListen::test_atime_update.
2015-09-16 07:13:31 +02:00
Florian Bruhin
7ffff72368
ipc: Make sure server is always shut down in tests.
...
Hopefully fixes #947 .
2015-09-16 07:11:30 +02:00
Florian Bruhin
dd2a70e01f
Fix IPC tests.
...
This was broken when adding some more logging.
2015-09-16 07:10:54 +02:00
Florian Bruhin
b126030f62
Revert "ipc: Skip problematic test on Ubuntu Trusty."
...
This reverts commit 729be7e7cc
.
2015-09-11 07:37:13 +02:00
Florian Bruhin
729be7e7cc
ipc: Skip problematic test on Ubuntu Trusty.
2015-09-10 08:21:37 +02:00
Florian Bruhin
87ccc31cce
ipc: Add some more tests for _atime_timer.
2015-09-10 08:02:19 +02:00
Florian Bruhin
58073fd768
ipc: Update the atime of the socket all 6h.
...
See #888 .
2015-09-10 07:38:11 +02:00
Florian Bruhin
f7d3070c34
ipc: Fix start when a stale legacy server exists.
2015-09-09 19:39:01 +02:00
Florian Bruhin
1d7c2b6b82
Don't set TMPDIR for test_legacy.
...
This has no real benefit and seems to break tests with some platforms.
2015-09-09 19:31:52 +02:00
Florian Bruhin
011b571336
Use a shorter tempdir.
2015-09-09 19:31:52 +02:00
Florian Bruhin
b135569d5c
ipc: Add workaround for NameError w/ SocketOptions.
2015-09-09 19:31:52 +02:00
Florian Bruhin
69e735c42e
ipc: Add username to hash instead.
2015-09-09 19:31:52 +02:00