summaryrefslogtreecommitdiff
path: root/tests/unit/utils/test_qtutils.py
AgeCommit message (Collapse)Author
2022-01-04Use flake8-pytest-stylepytest-styleFlorian Bruhin
2021-12-02pylint: Remove bad-continuation supressionsFlorian Bruhin
Removed in https://github.com/PyCQA/pylint/pull/3571 - should use black instead
2021-12-02pylint: Handle consider-using-withFlorian Bruhin
2021-03-24Fix trailing whitespaceFlorian Bruhin
2021-03-24Avoid missing_okFlorian Bruhin
Added in Python 3.8, see #6291
2021-03-24Simplify paths in test_jinja, _qtutils and _versionFlorian Bruhin
2021-03-18Reverting to abspath,minor simplificationsLembrun
2021-03-16Simplified with to write_text directlyLembrun
2021-03-16Replaced os.path by pathlib in tests/unit/utilsLembrun
2021-02-25Rename utils.py to testutils.pyLembrun
2021-02-10Fix lint/testsFlorian Bruhin
2021-02-10tests: Move Color to testutilsFlorian Bruhin
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-13dataclasses: Adjust import orderFlorian Bruhin
See #6023
2021-01-13dataclasses: Initial switchFlorian Bruhin
See #6023
2021-01-11Add objects.qapp to avoid needing to None-checkFlorian Bruhin
We know that QApplication.instance() will always be non-None for practical purposes, but the stubs now (correctly) declare it as Optional. See https://github.com/stlehmann/PyQt5-stubs/pull/126
2021-01-08Trivial PyQt 6 changesFlorian Bruhin
See #5395
2020-11-20tests: Update test_version_checkFlorian Bruhin
Use more recent Qt versions and add a test for a dev suffix
2020-11-20Move utils.interpolate_color to qtutilsFlorian Bruhin
This avoids a circular import between utils and qtutils, which, while unproblematic, was easy to fix. Also, qtutils is actually a better fit here, because we're dealing with QColor objects anyways.
2020-05-26Add filename if QtOSError is used with QFileDeviceFlorian Bruhin
If we have a filename available, let's add it to the error message. This also effectively reverts 00747be9d3790534e8b32464605d1b5b6c2d6627 since that's not needed anymore (Qt 5.7 is the oldest supported release).
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-05-22Add tests for qtutils.is_single_process()Florian Bruhin
2019-05-19Check for invalid QColor objectsFlorian Bruhin
2019-05-16Fix tab and webkit background colors clearing on config changeJay Kamat
Per the qt docs, we should not call setPalette on a class that also uses stylesheets. Since #4637, we set a stylesheet on the application, so we cannot use setPalette anymore. This commit refactors those calls to use stylesheets instead. As far as I can tell, QPalette is OK to use when manually drawing (we currently use it there).
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-28Remove unnecessary pass statementsFlorian Bruhin
2018-07-16Fix pylint 2.0 useless-return casesFlorian Bruhin
See https://github.com/PyCQA/pylint/issues/2300
2018-07-03Don't import test_file on WindowsFlorian Bruhin
See https://github.com/pytest-dev/pytest/issues/3650
2018-02-05Update copyright yearsFlorian Bruhin
2017-12-15pylint: Re-enable bad-continuationFlorian Bruhin
And lots and lots of whitespace changes.
2017-10-23modified as requestedsiddhugolu
2017-10-22modified pylint pragmassiddhugolu
2017-10-12Add missing testFlorian Bruhin
2017-10-12Also check PyQt version for qtutils.version_check()Florian Bruhin
With an older PyQt built against a newer Qt, we still don't have its features available. This also drops support for exact=True with compiled=True as the semantics for that are unclear, and it's not used.
2017-10-08Make qtutils.version_check strict by defaultFlorian Bruhin
This also renames 'strict' to 'compiled' to be more descriptive. It also fixes a crash when starting qutebrowser with an older compiled Qt version which was introduced recently (calling setSpellCheckEnabled).
2017-09-20Use utils.is_* for platform checks everywhereFlorian Bruhin
2017-09-18Drop legacy QtWebKit supportFlorian Bruhin
See #2742
2017-09-18Drop support for Qt < 5.7.1Florian Bruhin
See #2742
2017-09-17Add a new qt_args settingFlorian Bruhin
See #2589
2017-09-17Move qtutils.unset_organization to standarddirFlorian Bruhin
2017-07-08Replace OS X with macOSFlorian Bruhin
2017-05-23tests: Use match= for pytest.raisesFlorian Bruhin
2017-05-17Reorganize pylint configFlorian Bruhin
This removes various stuff we don't need anymoe, and also re-enables and fixes the import order check.
2017-05-09Finally update copyrights...Florian Bruhin
2017-04-28Read qWebKitVersion in qtutils.is_webkit_ng.Florian Bruhin
This means we need to try and import qWebKitVersion in qtutils, but better there than at every place which calls it.
2017-04-03Remove qtutils.ensure_not_nullFlorian Bruhin
It's not used anymore.
2017-03-08Remove unused operator importsFlorian Bruhin
2017-03-08Refactor qtutils.version_check APIFlorian Bruhin
Fixes #2423