Florian Bruhin
b7c3e7b959
Disallow {foo} in search engine URLs.
...
This causes an KeyError otherwise when trying to use str.format to insert the
search term.
2015-06-24 07:46:15 +02:00
Florian Bruhin
171a0f201b
Merge branch 'relapaths' of https://github.com/lamarpavel/qutebrowser into lamarpavel-relapaths
2015-06-08 18:48:11 +02:00
Lamar Pavel
7f27c183be
Include expandvars in File.validate
...
I thought I put this in here before, but apparently I did not. So here it is,
together with a new test to verify it. Other tests needed to be updated with a
mock for os.path.expandvars.
2015-06-08 13:18:16 +02:00
Florian Bruhin
8001099661
Adjust tests.
2015-06-05 17:45:32 +02:00
Lamar Pavel
f5d299d8c7
Fix intents
2015-05-28 13:05:12 +02:00
Lamar Pavel
b5eea81e2e
Fix File.validate and corresponding tests
...
There were no tests regarding the return value of standarddir.config() and thus
it wasn't caught that it returned None in some cases. This is now fixed by
checking the return of standdarddir.config before calling it and modifying the
corresponding test_validate_exists_rel as well as adding a new
test_validate_rel_config_none.
2015-05-28 12:14:12 +02:00
Lamar Pavel
4851a3d442
Replace isabs with exists in transform
...
In UserStyleSheet.transform os.path.isabs was replaced with os.path.exists, a
more fitting condition. Accordingly two test cases needed to include mocks for
os.path.exists and QUrl.fromLocalFile.
2015-05-27 15:39:58 +02:00
Lamar Pavel
e12dce9d55
Include expandvars in File.transform, adjust test
2015-05-27 14:40:07 +02:00
Lamar Pavel
cfae36c5c8
Adjust name and doc of modified test
2015-05-27 14:05:29 +02:00
Lamar Pavel
f326fa28a6
Merge branch 'master' into relapaths
...
Sync with upstream/master before creating a pull request
2015-05-27 11:57:13 +02:00
Lamar Pavel
f1129460d8
Class File now validates relative paths
...
The code from function validate in class UserStyleSheet has been migrated to
class File. One test had to be modified due to different expected behaviour.
2015-05-26 13:54:27 +02:00
Florian Bruhin
0f13d9325b
Don't use parametrization for deprecated keys.
...
This showed up as 2400 tests for what basically is one.
2015-05-25 01:26:52 +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
c762340a0c
Add --datadir/--cachedir arguments. Closes #136 .
2015-05-16 22:12:27 +02:00
Florian Bruhin
f49dba6e38
Use fake key events for scrolling.
...
Closes #669 .
Fixes #218 .
See #246 , #534 .
2015-05-15 19:02:33 +02:00
Florian Bruhin
f8f8699ab8
Fix key config migration for rapid hinting.
2015-05-13 10:45:20 +02:00
Florian Bruhin
5d13d0073c
Add some tests for key config migrations.
2015-05-13 10:41:23 +02:00
Florian Bruhin
25005ded8a
Add a test for deprecated default bindings.
2015-05-13 08:26:19 +02:00
Florian Bruhin
9f443d026a
Make pylint shut up.
2015-04-20 23:12:15 +02:00
Florian Bruhin
3433a1ec7a
Add tests for CommandRunner/KeyConfigParser.
2015-04-13 07:54:24 +02:00
Florian Bruhin
3bc55e0405
Merge pull request #20 from hackebrot/validate-key-config
...
Add a test to validate the default key config.
2015-04-10 08:44:57 +02:00
Florian Bruhin
91b72ef292
Add a test to validate the default key config.
2015-04-09 21:20:17 +02:00
Florian Bruhin
425cffc2f7
pylint: Ignore 'undefined-variable' for tests.
...
It's less than optimal, but disabling it selectively because of
https://bitbucket.org/logilab/pylint/issue/511/ is too annoying.
2015-04-09 07:43:47 +02:00
Florian Bruhin
7d4e6dfd67
Another workaround for a pylint bug.
2015-04-08 06:39:12 +02:00
Florian Bruhin
679ffa452a
Add some more invalid testcases to TestFont.
2015-04-08 06:22:05 +02:00
Florian Bruhin
fe696aeba5
Fix string concatenation and indenting for INVALID.
2015-04-08 06:20:43 +02:00
Bruno Oliveira
fd88311d9b
Use inline list comprehension for parametrize expression
2015-04-08 01:07:56 -03:00
Bruno Oliveira
6e3c3d7a70
Use single-quoted string for consistency
2015-04-08 01:07:56 -03:00
Florian Bruhin
9d44f777c0
Fix lint.
2015-04-05 20:30:31 +02:00
Bruno Oliveira
967c706bf0
Removed xfail from test since issue has been fixed on master
2015-04-05 12:29:18 -03:00
Bruno Oliveira
bfc99f09f9
Renamed test to tests as suggested by @The-Compiler
2015-04-05 12:23:04 -03:00