Skip to content

Commit 03d7005

Browse files
committed
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).
1 parent 479e663 commit 03d7005

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ pyiceberg-core = ["pyiceberg-core"]
317317
datafusion = ["datafusion"]
318318

319319
[tool.pytest.ini_options]
320+
testpaths = ["tests"]
321+
320322
markers = [
321323
"unmarked: marks a test as a unittest",
322324
"s3: marks a test as requiring access to s3 compliant storage (use with --aws-access-key-id, --aws-secret-access-key, and --endpoint args)",

0 commit comments

Comments
 (0)