summaryrefslogtreecommitdiff
path: root/tests/test_conftest.py
AgeCommit message (Collapse)Author
2023-06-30Remove vim modelinesPhilipp Albrecht
We're deprecating vim modelines in favor of `.editorconfig`. Removing vim modelines could be done using two one-liners. Most of the vim modelines were followed by an empty line, so this one-liner took care of these ones: ```sh rg '^# vim: .+\n\n' -l | xargs sed -i '/^# vim: /,+1d' ``` Then some of the vim modelines were followed by a pylint configuration line, so running this one-liner afterwards took care of that: ```sh rg '^# vim:' -l | xargs sed -i '/^# vim: /d' ```
2023-03-14Revert "lint: add stacklevel kwarg to warnings"Florian Bruhin
This reverts commit 47be6f3aeb886cf10f85158af18b13906fc68704. This doesn't really make sense in test files, as the warning would point inside some internal pytest code, which is not helpful. Instead, let's just disable the corresponding flake8 warning in tests.
2023-02-26lint: add stacklevel kwarg to warningstoofar
flake8-bugbear B028 No explicit stacklevel keyword argument found. The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user. Semgrep helped: semgrep --lang=py -e 'warnings.warn($ARG)' --replacement 'warnings.warn($ARG, stacklevel=2)' $FILES -a semgrep --lang=py -e 'warnings.warn($ARG1, $ARG2)' --replacement 'warnings.warn($ARG1, $ARG2, stacklevel=2)' $FILES -a Although it did lose the f-string on one of them.
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-02-22Update copyright for 2019Jay Kamat
2018-02-05Update copyright yearsFlorian Bruhin
2017-05-09Finally update copyrights...Florian Bruhin
2017-02-05Replace all GitHub linksFlorian Bruhin
2016-03-02tests: Allow XPASS for test_installed_packageFlorian Bruhin
We need to use strict=False here as test_installed_package can XPASS when running frozen tests.
2016-01-04Adjust copyright years.Florian Bruhin
2015-12-20Update to pytest-bdd 2.16.0.Florian Bruhin
This avoids deprecation warnings emitted by python 3.5 and pytest 2.8.
2015-12-01pylint: Disable deprecated-method in test_conftest.Florian Bruhin
2015-11-02Merge branch 'bdd'Florian Bruhin
Conflicts: tests/test_conftest.py tox.ini
2015-11-01Ignore inspect.getargspec() warning during tests.Florian Bruhin
https://github.com/pytest-dev/pytest-bdd/issues/153
2015-10-26Add xfailed test for #1070.Florian Bruhin
2015-10-01Fail tests on Python warnings.Florian Bruhin
Fixes #982.
2015-10-01Rename stupidly named test.Florian Bruhin
2015-09-28Don't skip all tests without DISPLAY set.Florian Bruhin
We used qapp in a session scoped fixture, which means testing without DISPLAY skipped all tests.