Commit Graph

4215 Commits

Author SHA1 Message Date
Bruno Oliveira
bfc99f09f9 Renamed test to tests as suggested by @The-Compiler 2015-04-05 12:23:04 -03:00
Bruno Oliveira
5fb7ad383d Fixed assertions and other issues as reported by @The-Compiler 2015-04-05 12:22:12 -03:00
Bruno Oliveira
3de584f02c Moving testfile used by test_utils into qutebrowser.utils 2015-04-04 19:15:23 -03:00
Florian Bruhin
6a03089639 Fix deleting of envvars in TestGetStandardDirLinux 2015-04-05 00:03:09 +02:00
Florian Bruhin
1e2a902a9f Fix paths for TestGetStandardDirLinux. 2015-04-05 00:03:09 +02:00
Bruno Oliveira
4fa2294805 Merge remote-tracking branch 'origin/master' into layout
Conflicts:
	qutebrowser/test/keyinput/test_basekeyparser.py
	qutebrowser/test/utils/test_standarddir.py
	test/browser/http/test_content_disposition.py
	test/config/test_configtypes.py
	test/misc/test_editor.py
	test/utils/test_debug.py
	test/utils/test_utils.py
	tox.ini
2015-04-04 14:29:49 -03:00
Bruno Oliveira
8222097942 Removed unnecessary module 'helpers' 2015-04-04 14:12:22 -03:00
Bruno Oliveira
2666388a6d Converted test_utils to pytest 2015-04-04 14:05:05 -03:00
Bruno Oliveira
4ab03b1536 Converted test_urlutils to pytest 2015-04-04 13:49:26 -03:00
Bruno Oliveira
5cf8ff1f84 Converted test_debug to pytest 2015-04-04 13:39:04 -03:00
Bruno Oliveira
bd9c807fb1 Converted test_editor to pytest 2015-04-04 13:29:11 -03:00
Bruno Oliveira
12903a34f4 Converted test_modeparsers to pytest 2015-04-04 13:02:31 -03:00
Bruno Oliveira
065c3fcd9d Renamed singleShot to isSingleShot in QTimer stub
As in compliance to: http://doc.qt.io/qt-5/qtimer.html
2015-04-04 12:52:49 -03:00
Bruno Oliveira
6388ec4794 Converted test_readline to pytest 2015-04-04 12:49:23 -03:00
Bruno Oliveira
7e7a1b7b28 Converted test_basekeyparser to pytest 2015-04-04 12:37:14 -03:00
Bruno Oliveira
9128ac41cb Removing (object) subclassing from test classes
Old habit from python 2
2015-04-04 12:05:44 -03:00
Bruno Oliveira
8000ea33d2 Converted test_config to pytest 2015-04-04 12:02:32 -03:00
Bruno Oliveira
ea16fb3684 Converted test_tabhistory to pytest 2015-04-04 11:43:14 -03:00
Florian Bruhin
cef88d6e19 test_log_time: Prettify duration assertion.
As suggested by @nicoddemus in #13.
2015-04-04 16:33:10 +02:00
Bruno Oliveira
6429d29a23 Converted test_conftest to pytest 2015-04-04 11:24:48 -03:00
Florian Bruhin
f1ebbda7a0 test_signal: Add docstring for signal(). 2015-04-04 12:08:22 +02:00
Florian Bruhin
8e93747040 test_log_time: Fix/simplify duration assert.
See #13.
2015-04-04 12:07:15 +02:00
Raphael Pierzina
dd4096b5a4 Merge remote-tracking branch 'upstream/master' 2015-04-04 11:12:39 +02:00
Florian Bruhin
e23c9401f2 Merge branch 'convert-debug-signal-tests' 2015-04-04 01:18:38 +02:00
Bruno Oliveira
99abd1edeb Adding pytest-mock to tox 2015-04-03 20:17:52 -03:00
Florian Bruhin
cd7319de1e Merge branch 'convert-logtime-tests' 2015-04-04 01:12:18 +02:00
Florian Bruhin
80b0692971 Remove blank line to make pep257 happy. 2015-04-04 01:11:57 +02:00
Bruno Oliveira
22df30cdcc Converted test_http to pytest 2015-04-03 20:09:53 -03:00
Bruno Oliveira
3129def33e Converted test_content_disposition to pytest 2015-04-03 20:07:20 -03:00
Florian Bruhin
1c9f116370 Merge branch 'convert-qflags-key-tests' 2015-04-03 23:52:53 +02:00
Florian Bruhin
2ac0c7b8f0 Remove now unused import from test_debug. 2015-04-03 23:52:13 +02:00
Florian Bruhin
05087b976a test_qflags_key: Improve xfail message. 2015-04-03 23:43:06 +02:00
Bruno Oliveira
7442e30f29 Converted test_webelem to pytest 2015-04-03 18:36:35 -03:00
Bruno Oliveira
f57223f7eb Removed environ_set_temp as we will use monkeypatch 2015-04-03 18:35:40 -03:00
Florian Bruhin
70f52fa9cc Merge pull request #11 from hackebrot/convert-qenum-key-tests
Convert qenum key tests
2015-04-03 23:29:10 +02:00
Florian Bruhin
544dc650e7 Remove now unused imports from test_debug. 2015-04-03 23:23:31 +02:00
Florian Bruhin
0e76f9b1f1 Whitespace adjustments 2015-04-03 23:19:49 +02:00
Florian Bruhin
e94a8a80f1 test_qenum_key: Use hasattr() for attribute checks. 2015-04-03 23:18:56 +02:00
Bruno Oliveira
3421e5e34f Created stubs fixture and converted test_stubs to pytest 2015-04-03 18:12:49 -03:00
Florian Bruhin
fba0ae69ce Remove test_reconverted from qenum_key tests.
The test didn't really seem to test anything useful, and also uses a QFlags
instead of a QEnum.
2015-04-03 23:05:08 +02:00
Raphael Pierzina
231feda2c8 Use logger with name of local var logger_name 2015-04-03 22:45:26 +02:00
Raphael Pierzina
efbc8e0cbf Remove former unittest module test_debug.py 2015-04-03 21:55:19 +02:00
Raphael Pierzina
7540a5bbf4 Convert test_dbg_signal_newline 2015-04-03 21:54:24 +02:00
Raphael Pierzina
22522406e1 Convert test_dbg_signal_eliding 2015-04-03 21:50:32 +02:00
Bruno Oliveira
9c533e1941 Moved tests to outside of qutebrowser package 2015-04-03 16:49:01 -03:00
Raphael Pierzina
9d39fbd4e5 Convert test_dbg_signal 2015-04-03 21:45:10 +02:00
Raphael Pierzina
45e95d497d Convert test_signal_name using a signal fixture 2015-04-03 21:41:52 +02:00
Florian Bruhin
068947ba7e Fix search engine syntax documentation.
We changed the syntax in 68398035ef but didn't
adjust the documentation.

See #14.
2015-04-03 20:54:27 +02:00
Raphael Pierzina
91a8b23aeb Use actual unittest implementation of assertAlmostEqual 2015-04-03 20:40:37 +02:00
Raphael Pierzina
6fb83aacae Add a local variable for the logger name 2015-04-03 20:32:29 +02:00