Commit Graph

66 Commits

Author SHA1 Message Date
Florian Bruhin 4fe3f8c471 Fix check_coverage.py tests with pytest 7.0
See https://github.com/pytest-dev/pytest/pull/8247
2021-07-06 10:20:43 +02:00
Florian Bruhin 413ce38abc tests: Fix test_check_coverage with Python 3.10 2021-05-05 20:36:27 +02:00
Florian Bruhin dc14d314c4 Remove confusing return 2021-04-09 16:55:23 +02:00
Florian Bruhin 20db7b9b53 Fix test_run_vulture.py with bleeding-edge vulture
See #6298
2021-03-22 11:11:29 +01:00
Lembrun 0a453396c1 Rename utils.py to testutils.py 2021-02-25 21:28:56 +01:00
Florian Bruhin ed3607fcf0 tests: Skip test_untested_branches for entire Python 3.10 alpha 2021-02-06 17:27:42 +01:00
Florian Bruhin e5bbf1f6aa tests: Skip broken check_coverage test for Python 3.10
See #6068
Probably https://github.com/nedbat/coveragepy/issues/1106
2021-01-26 21:00:44 +01:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 222f1f19a1 Bump copyright years
Closes #6015
2021-01-20 20:06:19 +01:00
Florian Bruhin d45b68a98d tests: Adjust workaround for windows 2021-01-19 13:12:03 +01:00
Florian Bruhin e3f29f7442 tests: Work around vulture path printing issue
See https://github.com/jendrikseipp/vulture/pull/246
2021-01-19 12:10:30 +01:00
Florian Bruhin 124fe5676b dataclasses: Fix ordering
See #6023
2021-01-13 20:26:51 +01:00
Ryan Farley 64ef8e9025 importer: improve documentation and arguments
Incorporates suggestions from #5913: help text accurately reflects real
usage, 'html' name used instead of 'netscape', and the browser
positional argument is expunged in favor of relying on explicit input
format being specified, help epilog includes common browsers and their
profile formats as well as a reminder that the output should be
redirected to qutebrowser configurationfiles to take effect.

fix tests to use new html name
2020-12-11 13:22:15 +00:00
Florian Bruhin 53e706b170 Add a test for problem matchers 2020-12-03 18:47:27 +01:00
Florian Bruhin 6f09c18ecd Run coverage over tests/scripts
Rationale: https://nedbatchelder.com/blog/202008/you_should_include_your_tests_in_coverage.html
Switched from "source" to "include" as a workaround for
https://github.com/nedbat/coveragepy/issues/578 - also see:
https://github.com/LibraryOfCongress/concordia/pull/857/files
2020-08-11 19:43:05 +02:00
Florian Bruhin 0a3d81ba25 tests: Disable xvfb in test_check_coverage
Looks like it raises a ByteWarning for some reason...
2020-07-29 11:28:39 +02:00
Florian Bruhin 13267033d0 tests: Make some more plugins optional 2020-07-29 11:26:30 +02:00
Florian Bruhin a633bff120 tests: Check return status in test_check_coverage 2020-07-29 11:19:41 +02:00
Constantine Theocharis 946e52903e Remove unneeded imports 2020-06-10 16:29:48 +01:00
Florian Bruhin 846adef211 tests: Remove unused import 2020-06-10 16:23:43 +02:00
Florian Bruhin e7cdc03685 tests: Cleanups after pathlib migration in tests/unit/scripts/ 2020-06-10 16:13:45 +02:00
Julin S 37e59112a5 Use tmpdir and pathlib 2020-06-03 13:45:08 +05:30
Florian Bruhin 9e4276db9b Adjust copyrights for 2020 2020-01-04 18:21:17 +01:00
Florian Bruhin a5fb23458b Clean up filename handling in dictcli/spell.py
Before this change, we sometimes assumed that a dictionary filename had a .bdic
suffix, sometimes not, and sometimes we added it by hand.

For some reason (probably some minor API change?) this currently breaks running
dictcli.py.

While the minimal fix in #4986 works, it only does so because we use re.match
(not re.fullmatch) inside spell.py, so the .bdic suffix (which is present
there) is ignored.

This change instead refactors all dict handling so that the suffix is always
included in the filename, and only stripped off in the last moment when passing
it to QtWebEngine.

Closes #4986
2019-08-27 11:25:00 +02:00
Florian Bruhin 7749dbc959 Clean up test_dictcli 2019-08-18 01:46:02 +02:00
Florian Bruhin 6e0c17b510 Fix some typos 2019-08-01 18:24:47 +02:00
Jay Kamat 3e816f5f8b
Update copyright for 2019 2019-02-22 21:45:08 -08:00
Florian Bruhin 6f028e9ad0 Update copyright years 2018-02-05 12:19:50 +01:00
Florian Bruhin 430126dcc8 pylint: Re-enable ungrouped-imports 2017-12-15 23:08:53 +01:00
Florian Bruhin e65c0dd8a7 pylint: Re-enable bad-continuation
And lots and lots of whitespace changes.
2017-12-15 19:16:55 +01:00
Ryan Farley 38b2d42b40 cleanup PYTEST_ADDOPTS for pytest subprocess
See https://github.com/qutebrowser/qutebrowser/pull/3349
2017-12-03 15:09:47 -06:00
Ryan Farley e2169d2d92 importer: fix style issues 2017-11-15 20:00:14 -06:00
Ryan Farley 2b6763ad13 importer: tests
Added tests for Netscape and Mozilla formats.
2017-11-14 19:23:34 -06:00
Florian Bruhin 78f4abf5a1
Merge pull request #3257 from ryan-farley/import-chrome
importer: Chrome support
2017-11-10 09:02:09 +01:00
Ryan Farley b5bf114ad4 importer: add chrome profile tests 2017-11-09 02:39:43 -06:00
Ryan Farley 5688fc9910 importer: test unsupported opensearch separate 2017-11-08 15:13:16 -06:00
Ryan Farley f5d719dfd4 importer: Chrome support
This adds Chrome/Chromium support to the importer (which ought to be the
last of these). Bookmarks are read from JSON, while keywords/search
engines (the same thing here) are read from the Web Data sqlite3
database, and converted from OpenSearch format.

importer: add tests for opensearch
2017-11-06 21:19:57 -06:00
Michal Siedlaczek 51a61cf02d Fix test: sort when comparing file collection 2017-11-04 20:03:53 -04:00
Michal Siedlaczek 3ac2cfdf73 Support updating dictionaries and removing old versions. 2017-11-04 18:16:05 -04:00
Michal Siedlaczek 6a486058c5 Review fixes 2017-10-04 09:22:35 -04:00
Michal Siedlaczek 932e7a9ab9 Review fixes 2017-10-03 20:07:06 -04:00
Florian Bruhin 46cfd5353d Use a pytest marker to fake an OS 2017-09-20 11:30:18 +02:00
Florian Bruhin ef1c83862b Use utils.is_* for platform checks everywhere 2017-09-20 11:10:24 +02:00
Florian Bruhin 54ceb52eaf Switch to using Item.get_report() for vulture 2017-09-20 08:17:04 +02:00
Florian Bruhin 4da9b8c495 check_coverage: Truncate long floats 2017-09-15 12:07:54 +02:00
Florian Bruhin 822623f2ed Finally update copyrights... 2017-05-09 21:37:03 +02:00
Florian Bruhin 8052249b1b Make check_coverage.py work with coverage 4.4
With coverage 4.4, the source name (qutebrowser/) is not added to the filename
anymore. To adjust for that, we remove qutebrowser/ from all paths, and also
make sure to remove it from what coverage returns (in case someone is running an
older version).
2017-05-09 06:13:35 +02:00
Florian Bruhin ca4f249c30 Use three-argument form of monkeypatch.*attr 2017-03-01 11:33:41 +01:00
Florian Bruhin 45ce430774 Fix test_check_coverage 2016-09-26 08:11:45 +02:00
Florian Bruhin 2da827462e Add a test to make sure check_coverage files exist 2016-09-07 11:37:21 +02:00