Florian Bruhin
ce0b9eab58
tox: Make it possible to pass args to pytest.
2015-04-05 15:39:05 +02:00
Florian Bruhin
87d5f57c08
Merge branch 'hackebrot-master'
...
https://github.com/The-Compiler/qutebrowser/pull/604
This PR splits test_debug.py into several modules located in a new sub
directory.
Most importantly it changes the according tests to py.test syntax and
introduces a plugin to examine log messages, namely pytest-capturelog.
2015-04-04 23:32:47 +02:00
Florian Bruhin
1e1a433dff
Regenerate authors.
2015-04-04 23:32:32 +02:00
Florian Bruhin
84d2556863
Merge branch 'master' of github.com:The-Compiler/qutebrowser
2015-04-04 22:05:31 +02:00
Florian Bruhin
1fdd7051c3
config: Filter docs for change_filter.
2015-04-04 22:03:28 +02:00
Florian Bruhin
57158e7191
Don't make default config a mutable global.
...
Before, configdata.DATA only existed once - that means when something
manipulated it, instantiating a new ConfigManager actually gave us the
*modified* rather than the default data.
There's still a (now readonly) configdata.DATA for performance reasons -
before, the settings completion model called data() many times, which caused
initializing of it taking a few (instead of nearly 0) seconds.
See https://github.com/hackebrot/qutebrowser/pull/16#discussion-diff-27770433
2015-04-04 22:01:02 +02:00
Florian Bruhin
cef88d6e19
test_log_time: Prettify duration assertion.
...
As suggested by @nicoddemus in #13 .
2015-04-04 16:33:10 +02:00
Florian Bruhin
b2df5a5b47
docs: Make it clear cache settings are global.
...
Closes #602 .
2015-04-04 15:31:12 +02:00
Florian Bruhin
18dea8c7cb
Add note about about:blank to default-page docs.
2015-04-04 15:10:22 +02:00
Florian Bruhin
217e788f4b
Add 'cd' shortcut to clear downloads.
2015-04-04 15:02:08 +02: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
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
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
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
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
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
Raphael Pierzina
58a8a7e992
Introduce pytest plugin capturelog and convert test_log_time
2015-04-03 20:10:41 +02:00
Florian Bruhin
25fca03dca
Don't double ampersands in window title.
...
Fixes #599 .
2015-04-03 20:04:44 +02:00
Florian Bruhin
6917c3b32d
set-cmd-text: Add -s/--space argument.
...
We need this because quotes are ignored now, so there'd be no way to set the
text to ":open -t " for example.
2015-04-03 19:07:29 +02:00
Florian Bruhin
3b3b55234b
Add a signal to KeyConfigParser to save config.
...
Before, we used the 'changed' signal for the SaveManager - however, that also
was emitted when only the internal structure changed. Now we add a new signal
for that.
2015-04-03 19:07:29 +02:00
Florian Bruhin
ac63fc073f
save: Add possibility to mark things dirty on add.
...
KeyConfig needs this feature, because it can fix some deprecated commands
during __init__ and emit its dirty-signal, but that happens before the saveable
is added.
2015-04-03 19:07:29 +02:00
Florian Bruhin
630a827afc
Change CHANGED_KEY_COMMANDS to be regexes.
...
Break after first regex
2015-04-03 19:03:30 +02:00
Florian Bruhin
a504bd1436
Don't quote completions for maxsplit-commands.
...
Fixes #564 .
Obsoletes #313 and #453 .
2015-04-03 19:03:30 +02:00
Florian Bruhin
0b26e295bc
Revert fixes for quotes/spaces in maxsplit cmds.
...
Revert "Fix maxsplit-splitting with empty args (""/'')."
This reverts commit 46396cce1e
.
Revert "Remove quotes with split=False commands."
This reverts commit 81bc5dae94
.
See #564 and #453 .
2015-04-03 19:00:16 +02:00
Raphael Pierzina
5b372aeee0
Remove blank lines in test_qflags_key
2015-04-03 18:55:24 +02:00
Raphael Pierzina
0b063ab4b4
Convert test_unknown
2015-04-03 18:51:40 +02:00
Raphael Pierzina
ff75d18e62
Convert test_int
2015-04-03 18:40:41 +02:00
Raphael Pierzina
086f12600c
Convert test_int_noklass
2015-04-03 18:37:12 +02:00
Raphael Pierzina
75e927f79e
Convert test_add_base
2015-04-03 18:33:22 +02:00
Raphael Pierzina
6482025399
Convert test_combined
2015-04-03 18:29:33 +02:00
Raphael Pierzina
f68cfc13e0
Convert test_multiple and use custom xfail marker
2015-04-03 18:25:28 +02:00
Raphael Pierzina
9a47848794
Create a new module and convert test_single
2015-04-03 18:22:13 +02:00
Raphael Pierzina
96a600e9dc
Change containing directory name to debug
2015-04-03 16:37:31 +02:00