Lamar Pavel
d127469d78
Add tests for fileMetaData()
...
One of those three tests is not complete as I couldn't yet find a way
to predict the path and name of cached files when using tmpdir.
2015-10-31 21:56:15 +01:00
Lamar Pavel
b94f7c7681
Add test for metaData() with cache deactivated
2015-10-31 18:49:58 +01:00
Lamar Pavel
404da750c6
Fix insertion into wrong cache
2015-10-31 18:32:14 +01:00
Lamar Pavel
571d7a680b
Fix all other tests that weren't using DiskCache
...
So yeah, this explains a lot of the missing paths reported by the
coverage analysis.
2015-10-31 17:09:00 +01:00
Lamar Pavel
35762955cf
Fix test_cache_remove_data
...
The test was not using qutebrowsers DiskCache class at all but Qts
QNetworkDiskCache. As a result the code paths of DiskCache.remove()
were never visited.
2015-10-31 16:57:00 +01:00
Lamar Pavel
3c2bc670ff
Add test for alternate path of DiskCache.clear()
2015-10-31 16:33:01 +01:00
Lamar Pavel
e1446c3448
Add another test for deactivated cache
...
This one is testing the missing path in updateMetaData for a not activated
cache.
2015-10-31 16:28:17 +01:00
Lamar Pavel
39e37b043e
Add more tests for deactivated cache
...
Getting closer to 100% completion, add tests for missing paths of
DiskCache.insert and DiskCache.cacheSize().
2015-10-31 16:13:29 +01:00
Florian Bruhin
b2dceb078f
Merge branch 'lamarpavel-test-browser-cache'
2015-10-30 18:54:37 +01:00
Florian Bruhin
367e501e56
Regenerate authors.
2015-10-30 18:54:30 +01:00
Florian Bruhin
468b2c4ade
Merge branch 'test-browser-cache' of https://github.com/lamarpavel/qutebrowser into lamarpavel-test-browser-cache
2015-10-30 18:54:24 +01:00
Florian Bruhin
c09ae4675c
Merge branch 'MazeChaZer-feature/remove-unused-tab'
2015-10-30 18:51:08 +01:00
Florian Bruhin
4c03197984
Regenerate authors.
2015-10-30 18:50:15 +01:00
Florian Bruhin
5bd07d23a3
Merge branch 'feature/remove-unused-tab' of https://github.com/MazeChaZer/qutebrowser into MazeChaZer-feature/remove-unused-tab
2015-10-30 18:49:07 +01:00
Florian Bruhin
e5b98a9762
tox: Update check-manifest to 0.26.
...
* Do not complain about missing .gitattributes file.
* Normalize unicode representation and case of filenames.
* Drop Python 2.6 support.
* Support installation via zc.buildout better.
2015-10-30 18:46:50 +01:00
Florian Bruhin
d2672bce86
tox: Update hypothesis to 1.13.0
...
This is quite a small release, but deprecates some public API functions and
removes some internal API functionality so gets a minor version bump.
- All calls to the 'strategy' function are now deprecated, even ones which pass
just a SearchStrategy instance (which is still a no-op).
- Never documented hypothesis.extra entry_points mechanism has now been removed
(it was previously how hypothesis.extra packages were loaded and has been
deprecated and unused for some time)
- Some corner cases that could previously have produced an OverflowError when
simplifying failing cases using hypothesis.extra.datetimes (or dates or
times) have now been fixed.
- Hypothesis load time for first import has been significantly reduced - it
used to be around 250ms (on my SSD laptop) and now is around 100-150ms. This
almost never matters but was slightly annoying when using it in the console.
- hypothesis.strategies.randoms was previously missing from __all__.
2015-10-30 07:42:09 +01:00
Lamar Pavel
27ec9e1c43
Fix typo
2015-10-30 02:46:43 +01:00
Lamar Pavel
b5af1c8730
Add three tests querying and removing data
...
Two of these are testing return values of a deactivated cache and the
third is trying to query data that was never inserted into an active
cache.
2015-10-30 02:41:17 +01:00
Lamar Pavel
b3fa19eb96
Add sanity test involving almost everything
2015-10-30 02:03:34 +01:00
Lamar Pavel
05994ad90e
Add theshold to cache-size test
...
The strict test condition before was violated by Qt internals which
seem to violate documented guarantees but are not part of qutebrowsers
code and thus can only be tested to a certain extent.
2015-10-30 01:22:16 +01:00
Jonas Schürmann
a4aacde88f
Undo: Fix issues with url comparison
2015-10-29 09:36:42 +01:00
Lamar Pavel
9a8032fa91
Fix pylint errors (upper case variable names)
2015-10-29 03:13:25 +01:00
Lamar Pavel
a6526a1be2
Add tests to update and verify meta data of cache entries
2015-10-29 02:57:16 +01:00
Lamar Pavel
2cab750a54
Add test for DiskCache.remove()
2015-10-29 02:37:32 +01:00
Lamar Pavel
e4c79a68d1
re-write tests to fill the cache
...
Previously the tests were not adding any data to the cache, making the
tests for a cache size other than 0 meaningless.
The new tests create cache entries and fill them with some data that
can be tested against.
2015-10-29 02:28:57 +01:00
Jonas Schürmann
618d9ceabf
Fix PEP 257 violation
2015-10-29 00:52:44 +01:00
Jonas Schürmann
ebe9835e5a
Remove unused tab on undo
2015-10-29 00:22:54 +01:00
Florian Bruhin
6f07eb562f
Revert "Don't use faulthandler plugin for check_coverage."
...
This reverts commit 497fba5667
.
2015-10-28 08:22:41 +01:00
Florian Bruhin
497fba5667
Don't use faulthandler plugin for check_coverage.
2015-10-28 07:45:34 +01:00
Florian Bruhin
11098b8b82
Merge branch 'MazeChaZer-feature/duckduckgo.com'
2015-10-27 20:53:42 +01:00
Florian Bruhin
776a89820f
Regenerate authors.
2015-10-27 20:53:34 +01:00
Jonas Schürmann
fe32b349a5
Use duckduckgo.com instead of www.duckduckgo.com
2015-10-27 20:31:10 +01:00
Florian Bruhin
9b104b0af7
ci_install: Update installed packages.
2015-10-27 17:54:23 +01:00
Florian Bruhin
a0c2c37a40
travis: Don't pass --required to codecov.
...
The latest release doesn't support that yet.
2015-10-27 17:54:05 +01:00
Florian Bruhin
02dda23be6
AppVeyor: Really fix codecov.
2015-10-27 17:53:50 +01:00
Florian Bruhin
daaa15396c
AppVeyor: Don't use shallow clones.
...
Otherwise codecov.io won't work.
2015-10-27 17:53:14 +01:00
Florian Bruhin
381d857f2c
Revert "Add workarounds for issues with pylint tip."
...
This reverts commit 1d2683993e
.
This causes a bad-option-value issue with the current pylint.
2015-10-26 22:05:21 +01:00
Florian Bruhin
1d2683993e
Add workarounds for issues with pylint tip.
2015-10-26 21:20:11 +01:00
Florian Bruhin
66b337c2b1
Add missing superclass init calls.
2015-10-26 21:07:08 +01:00
Florian Bruhin
021a379dd2
Add xfailed test for #1070 .
2015-10-26 21:02:34 +01:00
Florian Bruhin
fa671a7b5e
Fix codecov on AppVeyor.
2015-10-26 19:38:59 +01:00
Florian Bruhin
7656d1320a
tox: Update pytest-travis-fold to 1.1.1.
2015-10-26 18:55:44 +01:00
Florian Bruhin
4fcb2feced
tox: Add a pylint-tip testenv.
2015-10-26 18:51:41 +01:00
Florian Bruhin
c85aa40073
Skip connected_socket IPC tests on OS X.
...
Fixes #1045 - I don't have the time to look into this :-/
2015-10-26 09:04:41 +01:00
Florian Bruhin
c335aff900
Revert "Add pytest-timeout."
...
This reverts commit 8919a152fe
.
Seems to cause more trouble than it's worth... bogus timeouts on OS X and
Windows, with Windows then hanging...
2015-10-26 08:53:55 +01:00
Florian Bruhin
0cdc744afd
Try running codecov on AppVeyor.
2015-10-26 08:51:06 +01:00
Florian Bruhin
6f646a9da5
travis: Pass -X gcov --required to codecov.
2015-10-26 08:47:00 +01:00
Florian Bruhin
fc573963f4
Fix lint.
2015-10-26 08:43:55 +01:00
Florian Bruhin
4e48e3d725
ci_install: Only install codecov when needed.
2015-10-26 07:37:20 +01:00
Florian Bruhin
66afdbaf16
travis: Don't run codecov if it's unneeded.
2015-10-26 07:35:29 +01:00