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
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