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
Florian Bruhin
c08078841f
Fix test_qprocess.
2015-06-08 07:49:22 +02:00
Florian Bruhin
1fcce12870
Fix TestPyQIODevice.failing_open on Windows.
2015-06-08 07:45:19 +02:00
Florian Bruhin
00747be9d3
Fix TestSavefileOpen.test_existing_dir on older Qt.
2015-06-08 07:43:40 +02:00
Florian Bruhin
261c44bea9
Fix TestPyQIODevice.test_qprocess on Windows.
2015-06-08 07:42:17 +02:00
Florian Bruhin
1e982a9a84
Add/improve tests for qutebrowser.utils.qtutils.
2015-06-07 23:20:34 +02:00
Florian Bruhin
e60f698615
Add/improve tests for qutebrowser.utils.standarddir.
2015-06-07 23:20:34 +02:00
Florian Bruhin
df53ccf426
Write tests for qutebrowser.utils.version.
2015-06-07 23:20:34 +02:00
Florian Bruhin
4204579c06
Add/improve tests for qutebrowser.utils.utils.
2015-06-07 22:53:30 +02:00
Florian Bruhin
e86a79740a
Use raising=True for QtBot.waitSignal.
2015-06-07 02:30:36 +02:00
Florian Bruhin
aa4cb2927d
Fix TestHideQtWarning tests for pytest 1.4.0.
...
pytest captures the Qt logging messages, so we can't use qWarning to test.
2015-06-07 02:29:20 +02:00
Florian Bruhin
9ec6e6da80
Fix exit status codes to be 0-based.
2015-06-04 15:13:20 +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
81ba49e79b
Fix tests on OS X, take two.
2015-05-17 18:59:40 +02:00
Florian Bruhin
a9f5d45c34
Fix tests on OS X.
2015-05-17 18:52:55 +02:00
Florian Bruhin
54131e9d3e
Add --basedir arg with multiple instance support.
...
Closes #510 .
2015-05-16 23:10:20 +02:00
Florian Bruhin
aab5411317
Fix test function name.
2015-05-16 23:06:33 +02:00
Florian Bruhin
42c27ddbc0
Use temp dir for standarddir arg tests.
2015-05-16 22:30:00 +02:00
Florian Bruhin
c762340a0c
Add --datadir/--cachedir arguments. Closes #136 .
2015-05-16 22:12:27 +02:00
Florian Bruhin
7e2c67a7e4
Fix tests/lint.
2015-05-15 20:25:29 +02:00
Florian Bruhin
392fb3e1d7
Rewrite test_neighborlist.py to use pytest.
...
See #660 .
2015-05-10 16:19:30 +02:00
Florian Bruhin
021c94eece
Rewrite test_enum.py to use pytest.
...
See #660 .
2015-05-10 16:19:30 +02:00
Florian Bruhin
8398fe3bdd
Rewrite test_log.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
903d437943
Fix flaky log_time test.
2015-05-06 11:21:49 +02:00
Florian Bruhin
4925091ede
Merge branch 'master' of github.com:The-Compiler/qutebrowser
2015-04-22 07:43:01 +02:00
Florian Bruhin
cc738fa846
Make test_log_time less flaky.
2015-04-16 08:58:48 +02:00
Florian Bruhin
987bab9960
Merge pull request #19 from hackebrot/parametrize-sub-tests
...
Parametrize sub tests
2015-04-14 07:01:53 +02:00
Florian Bruhin
ba678e29fb
Fix lint.
2015-04-14 07:00:56 +02:00
Bruno Oliveira
6ae94d6f49
Create module overflow_test_cases
...
As suggested by @The-Compiler
2015-04-13 18:20:40 -03:00
Florian Bruhin
a6e3199616
Fix binding of special keys with lower-case mods.
2015-04-13 22:08:57 +02:00
Bruno Oliveira
f4c46ec1c5
Improve test legibility in TestCheckOverflow
...
Created OverflowTestCases which is responsible to provide data for the tests
2015-04-10 18:22:02 -03:00
Florian Bruhin
74f4642a2c
Fix lint.
2015-04-09 07:35:33 +02:00
Florian Bruhin
44a6617184
Add docstring for patch_read_file.
2015-04-09 06:53:21 +02:00
Bruno Oliveira
853280feeb
Convert test_qtutils to pytest
2015-04-08 20:25:01 -03:00
Raphael Pierzina
b18c1254a4
Use an autofixture that monkeypatches read_file for both tests
2015-04-09 00:46:48 +02:00
Raphael Pierzina
c3e615dfa3
Remove the test class from test_jinja.py
2015-04-09 00:38:57 +02:00
Raphael Pierzina
d91400c3be
Use pytest monkeypatch instead of unittest.mock.patch
2015-04-09 00:32:24 +02:00
Raphael Pierzina
63ce7d6e02
Remove unittest methods in favor of pytest assert statements
2015-04-08 23:57:08 +02: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