Skip to content

Commit

Permalink
[py] moved all pytest configuration settings from pytest.ini file t…
Browse files Browse the repository at this point in the history
…o `pyproject.toml` (#14256)



---------

Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
  • Loading branch information
sandeepsuryaprasad and diemol committed Aug 22, 2024
1 parent e4258ea commit 26f9aa2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion py/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ py_library(
"test/selenium/webdriver/support/conftest.py",
],
data = [
"pytest.ini",
"pyproject.toml",
"setup.cfg",
"test/selenium/webdriver/common/test_file.txt",
"test/selenium/webdriver/common/test_file2.txt",
Expand Down
18 changes: 18 additions & 0 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
[build-system]
requires = ["setuptools", "setuptools-rust"]
build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
console_output_style = "progress"
faulthandler_timeout = 60
log_cli = true
trio_mode = true
markers = [
"xfail_chrome: Tests expected to fail in Chrome",
"xfail_edge: Tests expected to fail in Edge",
"xfail_firefox: Tests expected to fail in Firefox",
"xfail_ie: Tests expected to fail in IE",
"xfail_remote: Tests expected to fail with Remote webdriver",
"xfail_safari: Tests expected to fail in Safari",
"xfail_webkitgtk: Tests expected to fail in webkitgtk",
"no_driver_after_test: If there are no drivers after the test it will create a new one."
]
python_files = ["test_*.py", "*_test.py"]
testpaths = ["test"]
15 changes: 0 additions & 15 deletions py/pytest.ini

This file was deleted.

0 comments on commit 26f9aa2

Please sign in to comment.