Fix pytest warnings (#7928)

* Use `--strict-markers` instead of `--strict`, as per this warning:

  ```
  /.../_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead.
  ```

* Remove config option 'testspath' - pytest is logging a warning about this being unknown:

  ```
  /.../_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: testspath
  ```

  I can't find any reference to it in the pytest docs or changelog.
This commit is contained in:
Adam Johnson 2021-04-16 17:47:21 +01:00 committed by GitHub
parent a0a2c5cb37
commit 67b5093ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,7 @@
license_file = LICENSE.md license_file = LICENSE.md
[tool:pytest] [tool:pytest]
addopts=--tb=short --strict -ra addopts=--tb=short --strict-markers -ra
testspath = tests
[flake8] [flake8]
ignore = E501,W504 ignore = E501,W504