summaryrefslogtreecommitdiff
path: root/tests/unit/browser/test_history.py
AgeCommit message (Collapse)Author
2022-01-04Use flake8-pytest-stylepytest-styleFlorian Bruhin
2021-07-09Restore the sql fixture to close DBs after testinglufte
2021-07-03Refactor tests that needed the Database classlufte
2021-07-02The database of a table shouldn't be privatelufte
2021-06-30Fix history unit testslufte
2021-03-18pylint: Disable pointless-statement in testsFlorian Bruhin
2021-03-18Try to recover from CompletionMetaInfo with unexpected structureFlorian Bruhin
Fixes #6302
2021-02-26Qtbot methods changed to snake case,snake case check addedLembrun
2021-02-03Improve rebuilding of history databaseFlorian Bruhin
- Re-add the force_rebuild key which we need internally again. This partially reverts changes from: * cd0000f728459f208c4cf69f29b603fbcab6ffb4 * 1a9b59fcfa73d1505834d8461ee166f07fb201cd * 93ecd8f72f108743948f0d1881055ff2337058ec - Instead of checking self.completion to figure out whether we need to rebuild anything, check 'self' (i.e. the History table, not the CompletionHistory table). If something went wrong during the last rebuild, the CompletionHistory might still be empty, but History is what actually matters to figure out whether to rebuild. - Set force_rebuild while rebuilding the history, so that a possible interruption of the process (e.g. by a killed process or crash) results in another rebuild from scratch. - Bump up the user version again, so that we re-add force_rebuild to the database. This also forces another rebuild which helps with possible inconsistent data when someone interrupted the earlier rebuild for v2.0.0. Fixes #6111
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-15sql: Remove HistoryProgress reusabilityFlorian Bruhin
Not actually needed and complicates things
2021-01-15history: Fix testsFlorian Bruhin
2021-01-14Revert "history: Simplify HistoryProgress"Florian Bruhin
Seems to cause random dialogs This reverts commit f1b925e37fea016939a35126bfc29a0c3e2d547b.
2021-01-14history: Simplify HistoryProgressFlorian Bruhin
It doesn't actually need to be reusable, also make sure it's cleaned up when unneeded.
2021-01-05history: Show progress dialog immediatelyFlorian Bruhin
Even just finding out how many entries we have takes multiple seconds on my (rather recent) system - let's try to show a window as early as possible so that the user knows something is going on. This might be rather distracting if things only take a very short time, but that's probably the exception rather than the rule.
2021-01-05Remove qute://pdfjs URLs from historyFlorian Bruhin
The original URL is already in the history anyways - the qute://pdfjs URL is not really something that gets visited "separately" from the PDF download. With #5000, these URLs can also get very big if the PDF is in a data: URL, see #1099.
2021-01-05Revert "Rename CompletionMetaInfo to MetaInfo"Florian Bruhin
This reverts commit 3ffc46444aac5c7e1aca3443a1e380308d841b54. Not actually worth the trouble it brings (making databases incompatible between qutebrowser versions).
2021-01-05Rename CompletionMetaInfo to MetaInfoFlorian Bruhin
2021-01-05history: Refactor early excludesFlorian Bruhin
Move the check to a method and move some end2end to unit tests.
2021-01-02history: Remove old force_rebuild valuesFlorian Bruhin
2021-01-02Improve test_modifyFlorian Bruhin
2021-01-02Merge remote-tracking branch 'origin/pr/5871'Florian Bruhin
2020-12-23Reword function description and fix flake8 warningmamg22
2020-12-23Update tests in TestRebuildmamg22
Remove or replace uses of "force_rebuild" Added test_pattern_change_rebuild
2020-12-23Replace "force_rebuild" in TestCompletionMetaInfomamg22
2020-11-24Fix flake8Florian Bruhin
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-11-25Remove web-history from objregFlorian Bruhin
See #640
2019-09-13Add objects.debug_flagsFlorian Bruhin
This removes some objreg.get('args'), see #640
2019-04-13Fix testsJay Kamat
2019-04-06Make last_url privateJay Kamat
2019-04-03Ignore duplicate consecutive history entries from the same urlJay Kamat
2019-04-03Remove Sql prefix for SqlKnownError and SqlBugErrorFlorian Bruhin
We already have the sql module as namespace, no need to repeat it.
2019-04-03Finish environmental -> known renameFlorian Bruhin
2019-04-02Refactor LongQueryError and EnvironmentError into KnownErrorJay Kamat
- Also generalize catch on histcategory sql query to fix #4687
2019-03-13Eschew the extraneous elsesFlorian Bruhin
https://www.youtube.com/watch?v=JVVMMULwR4s&t=289
2019-02-22Update copyright for 2019Jay Kamat
2018-11-29Move CommandError to api.cmdutilsFlorian Bruhin
2018-09-06Use a shared web_history fixtureFlorian Bruhin
2018-09-06Decrease minimum QProgressDialog durationFlorian Bruhin
We already have a threshold before we use a QProgressDialog at all, so let's show it quite quickly and not after 4 seconds.
2018-09-06Add tests for HistoryProgressFlorian Bruhin
2018-09-06Remove support for importing pre-v1.0.0 historyFlorian Bruhin
2018-09-06Add tests for history progressFlorian Bruhin
2018-09-06Factor out GUI stuff to a HistoryProgress objectFlorian Bruhin
2018-09-02Use config_stub.val instead of config_stub.set_obj in testsFlorian Bruhin
2018-09-02Rename history.exclude to completion.web_history.excludeFlorian Bruhin
If the blacklist is only valid for the completion, the setting should also be under completion. This also un-renames history.gap_interval and renames completion.web_history_max_items.
2018-09-01Redesign SQL error handlingFlorian Bruhin
Instead of having an environmental attribute on exceptions, we now have two different exception classes. Fixes #3341 See #3073
2018-09-01Add a history.exclude settingFlorian Bruhin
This allows to exclude URL patterns from being displayed in the completion or in qute://history.
2018-09-01Add test for no-sql-history flagFlorian Bruhin