Florian Bruhin
41b9fd7853
tox: Remove --rcfile for pylint.
...
We don't need this anymore as pylint now reads .pylintrc automatically.
2015-11-30 21:08:17 +01:00
Florian Bruhin
455e5f6523
Merge branch 'flv0-log-javascript-console'
2015-11-30 08:08:58 +01:00
Florian Bruhin
6ad1d37eb5
Regenerate docs.
2015-11-30 08:08:52 +01:00
Florian Bruhin
5f13fd2ece
Merge branch 'log-javascript-console' of https://github.com/flv0/qutebrowser into flv0-log-javascript-console
2015-11-30 08:08:31 +01:00
Florian Bruhin
7d9ef320d2
Merge branch 'flv0-conf-remove-special'
2015-11-30 07:42:56 +01:00
Florian Bruhin
f93785a0be
Merge branch 'conf-remove-special' of https://github.com/flv0/qutebrowser into flv0-conf-remove-special
2015-11-30 07:42:04 +01:00
Florian Bruhin
a987c08b69
tox: Set basepython = python3 for pylint.
2015-11-30 07:38:49 +01:00
Florian Bruhin
2f955470db
travis: Add buildtimetrend.
2015-11-30 07:37:04 +01:00
Florian Bruhin
48252258dd
Disable some new pylint checks.
2015-11-30 07:16:24 +01:00
Florian Bruhin
6e392f0f09
Add workarounds for pylint/astroid update.
2015-11-30 07:16:12 +01:00
Florian Bruhin
0004bebc09
tox: Update astroid/pylint to 1.4.1/1.5.0.
...
This means logilab-common isn't needed anymore and it runs with python 3.5 now.
2015-11-30 07:15:40 +01:00
Florian Bruhin
a9de97968d
Make pylint shut up about ua_fetch.py.
2015-11-30 07:12:18 +01:00
Florian Bruhin
f7a13fa1f9
Rename LineParserWrapper to LineParserMixin.
...
This makes pylint shut up as it realizes it is, in fact, a mixin.
2015-11-30 07:11:35 +01:00
Florian Bruhin
2ba55a0e77
Split generate_settings in src2asciidoc.
2015-11-30 07:11:03 +01:00
Florian Bruhin
27d0c004e2
Don't reuse variable in compact_text.
2015-11-30 07:10:39 +01:00
Florian Bruhin
288bf1524e
Fix some unidiomatic comparisons.
2015-11-30 07:10:21 +01:00
Florian Bruhin
e227712e21
Don't reuse DocstringParser attribute.
2015-11-30 07:09:40 +01:00
Florian Bruhin
7e6be517e3
Simplify indicator_width code.
2015-11-30 07:09:02 +01:00
Florian Bruhin
307fe6b109
Avoid shadowing 'model'.
2015-11-30 07:03:49 +01:00
Florian Bruhin
a4f47150b4
Simplify unneeded if.
2015-11-30 07:00:51 +01:00
Florian Bruhin
a008b488b1
tox: Set ignore_errors for some environments.
...
We want to run pylint on tests as well if the first pylint invocation failed.
2015-11-30 07:00:20 +01:00
Patric Schmitz
a8b808819a
update log-javascript-console option documentation
2015-11-29 19:24:09 +01:00
Patric Schmitz
b9aa40ea74
remove config types special variable
2015-11-29 18:53:37 +01:00
Patric Schmitz
98a454a428
log-javascript-console -> [none, debug, info]
2015-11-29 18:37:11 +01:00
Florian Bruhin
d286f637d6
tests: Set basedir to None, not ''.
...
Turns out setting basedir='' creates cache/ in cwd.
2015-11-29 01:23:28 +01:00
Florian Bruhin
f7a3a9e015
Split testprocess.wait_for into two methods.
2015-11-29 01:23:19 +01:00
Florian Bruhin
736fd7d45e
Use os.path.join for bookmarks/urls path.
...
This should fix the tests on Windows which failed because they matched against
a message containing \.
2015-11-29 00:59:18 +01:00
Florian Bruhin
6a46aea934
Fix tests for basedir logging.
...
f5febc4
broke various tests which called standarddir.init() without a valid
basedir.
2015-11-29 00:35:18 +01:00
Florian Bruhin
a67644589e
bdd: Add first test for :bookmark-add.
2015-11-28 23:37:27 +01:00
Florian Bruhin
f9d7f20aac
tests: Raise if wait_for is used without kwargs.
...
Otherwise wait_for would return immediately because matches is empty so
any(matches) is True.
2015-11-28 23:36:26 +01:00
Florian Bruhin
f5febc4807
Log basedir and save it in QuteProcess for tests.
2015-11-28 23:35:32 +01:00
Florian Bruhin
e26c499bd6
lineparser: Log after saving is done.
...
This will make end to end tests easier as we can easily wait until saving is
done.
2015-11-28 23:35:04 +01:00
Florian Bruhin
8d5b6b2dad
bdd: Add tests for :home.
2015-11-28 22:44:05 +01:00
Florian Bruhin
052e758f38
bdd: Add tests for :help.
2015-11-28 22:34:19 +01:00
Florian Bruhin
429f520997
Merge branch 'flv0-log-javascript-console'
2015-11-28 21:12:41 +01:00
Florian Bruhin
1d4c51b78a
Regenerate authors.
2015-11-28 21:12:31 +01:00
Florian Bruhin
c236e70920
Merge branch 'log-javascript-console' of https://github.com/flv0/qutebrowser into flv0-log-javascript-console
2015-11-28 21:12:25 +01:00
Florian Bruhin
83b94a8be5
Fix session tests.
...
FakeMainWindow needs to be a QObject now as we use sip.isdeleted since
8cf6ace0e7
and that raises a TypeError on
non-QObject's.
2015-11-28 20:41:42 +01:00
Florian Bruhin
03b6459d2f
tox: Update py to 1.4.31.
2015-11-28 20:38:20 +01:00
Florian Bruhin
8cf6ace0e7
Ignore deleted windows when saving session.
...
This hopefully helps with a crash on Windows which happens from time to time
during some multi-window tabs.feature tests:
Traceback (most recent call last):
File "...\mainwindow\mainwindow.py", line 446, in closeEvent
self._do_close()
File "...\mainwindow\mainwindow.py", line 405, in _do_close
objreg.get('session-manager').save_last_window_session()
File "...\misc\sessions.py", line 247, in save_last_window_session
self._last_window_session = self._save_all()
File "...\misc\sessions.py", line 183, in _save_all
win_data['geometry'] = bytes(main_window.saveGeometry())
RuntimeError: wrapped C/C++ object of type MainWindow has been deleted
2015-11-28 20:30:41 +01:00
Patric Schmitz
913aa209c6
remove BadMappingSubclass and rename MappingSubclass
2015-11-28 20:17:31 +01:00
Patric Schmitz
dbc6f63fc0
remove whitespace
2015-11-28 18:57:41 +01:00
Patric Schmitz
03ba38578e
set valid_values after __init__ consistently, move type validation out of class into pytest
2015-11-28 18:29:51 +01:00
Patric Schmitz
fdde05569c
remove redundant __init__ and rely on base class
2015-11-28 18:29:51 +01:00
Patric Schmitz
c14b52f916
initialize valid_values separately, not using base class __init__ parameter
2015-11-28 18:29:51 +01:00
Patric Schmitz
c322130dc0
style changes
2015-11-28 18:29:51 +01:00
Patric Schmitz
6f65397dfe
always set valid_values in __init__ instead of class scope variable
2015-11-28 18:29:51 +01:00
Patric Schmitz
9b453aaad5
revert config transformation
2015-11-28 18:29:51 +01:00
Patric Schmitz
9aaf5c18c1
set valid_values in __init__ methods, except for BaseType s.t. variable is shared across derived class scopes
2015-11-28 18:29:51 +01:00
Patric Schmitz
55edd9cda7
add valid_values = None to config basetype
2015-11-28 18:29:51 +01:00