From 03d7005914183f84434b374cc977ccb7139cc5aa Mon Sep 17 00:00:00 2001 From: Stanley Law Date: Thu, 10 Jul 2025 08:43:01 +0000 Subject: [PATCH] chore: specify test paths in pytest configuration Add `testpaths` option to enjoy the Test Explorer UI extension in development. Without this option, though the Python Test Adpater Log will run `pytest --collect-only` to discovery tests, it will potential occur error when parsing the test files (e.g. Import Error). --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 40e5c30f31..683d3e1111 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -317,6 +317,8 @@ pyiceberg-core = ["pyiceberg-core"] datafusion = ["datafusion"] [tool.pytest.ini_options] +testpaths = ["tests"] + markers = [ "unmarked: marks a test as a unittest", "s3: marks a test as requiring access to s3 compliant storage (use with --aws-access-key-id, --aws-secret-access-key, and --endpoint args)",