Florian Bruhin
9cabd4828c
Skip test_guiprocess:test_error on Windows.
...
Waiting for a new pytest-qt release which will probably fix this.
2015-08-10 06:54:11 +02:00
Florian Bruhin
fbf53168c2
Skip test_double_start_finished on Windows.
...
It seems the process sometimes crashes...
2015-08-09 20:00:45 +02:00
Florian Bruhin
c4ebfcd4b3
Make tests fail on unexpected logging messages.
2015-08-09 20:00:36 +02:00
Florian Bruhin
b2cb9d6d46
Add hypothesis tests for misc.split.
...
See #830 .
2015-08-02 13:40:24 +02:00
Florian Bruhin
59460035c5
Add simple_split() test with maxsplit=0 and keep.
2015-08-02 13:20:30 +02:00
Florian Bruhin
9318173dc8
Test ShellLexer with empty input.
2015-08-02 13:02:32 +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
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
9b264c7514
tests: Share common markers.
2015-06-28 22:58:48 +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
08c8a5f7dd
Skip tests which need sys.executable when frozen.
...
See #770
2015-06-19 09:40:26 +02:00
Florian Bruhin
e8830a631e
Increase test_guiprocess timeouts.
...
Apparently 1 second is not enough for Windows to start a process...
2015-06-12 11:54:20 +02:00
Florian Bruhin
36a2f4a15a
Fix newline stripping.
2015-06-11 23:14:56 +02:00
Florian Bruhin
fc32858e5c
Add GUIProcess tests.
2015-06-11 23:05:57 +02:00
Florian Bruhin
fc5349e1dc
Change FakeQProcess stub to a function with spec.
2015-06-11 23:02:18 +02:00
Florian Bruhin
ad401e035f
Proxy QProcess signals.
2015-06-11 20:30:37 +02:00
Florian Bruhin
1f67353a40
Adjust editor tests for GUIProcess.
2015-06-11 20:30:28 +02:00
Florian Bruhin
163bc2e12e
Add GUIProcess.
...
This aims to unify the code which spawns a process and then shows statusbar
notifications when it exited, etc.
2015-06-11 20:30:03 +02:00
Florian Bruhin
7daf1cb239
Merge branch 'rltests'
2015-06-01 09:03:06 +02:00
Florian Bruhin
ddf86600d1
tests: Rename Testable* classes.
...
This hides some pytest warnings as it tried to collect those classes.
2015-05-27 07:51:53 +02:00
Florian Bruhin
341708f543
Refactor readline tests.
...
They now use a real QLineEdit and verify a lot more.
See #660 , #678 .
2015-05-19 12:36:07 +02:00
Florian Bruhin
98d1fca220
Use monkeypatch instead of mocker in some tests.
...
See #660 .
2015-05-18 23:32:01 +02:00
Florian Bruhin
8e417970c3
Merge branch 'pytest-rewrites'
2015-05-18 21:42:15 +02:00
Florian Bruhin
c762340a0c
Add --datadir/--cachedir arguments. Closes #136 .
2015-05-16 22:12:27 +02:00
Florian Bruhin
452e03f9af
Rewrite test_lineparser.py to use pytest.
...
See #660 .
2015-05-10 16:19:30 +02:00
Florian Bruhin
db0a54b03f
Rewrite test_crashdialog.py to use pytest.
...
See #660 .
2015-05-10 16:19:30 +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
Florian Bruhin
a7dfdd48e0
Fix lint.
2015-04-20 22:59:35 +02:00
Bruno Oliveira
69061c5629
Remove LimitLineParser from test
...
As suggested by @The-Compiler, this is not really necessary
2015-04-20 12:51:36 -03:00
Bruno Oliveira
f55242ad93
Use pytest-mock to install QApplication.clipboard mock
2015-04-19 17:13:47 -03:00
Raphael Pierzina
6c97a4a6e0
Remove blank line at end of file to fix flake8
2015-04-19 21:10:27 +02:00
Bruno Oliveira
f5e6091ff6
Add tests for CommandLineEdit
2015-04-15 20:22:03 -03:00
Florian Bruhin
ba678e29fb
Fix lint.
2015-04-14 07:00:56 +02:00
Bruno Oliveira
6f1e830aba
Parametrize test_str_split_maxsplit
...
As suggested by @hackebrot
2015-04-09 18:44:40 -03:00
Bruno Oliveira
253f3b2cd7
Use namedtuple and parametrized fixture for TestSplit
...
As discussed in the PR, this greatly improves legibility
2015-04-09 18:40:56 -03:00
Florian Bruhin
74f4642a2c
Fix lint.
2015-04-09 07:35:33 +02:00
Bruno Oliveira
6037fd74cd
Convert test_split to pytest
2015-04-08 20:07:14 -03:00
Bruno Oliveira
75386e4051
Remove "object" subclassing from Test classes missed initially
2015-04-08 01:06:30 -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