File: test_doc_no_pytest_examples.patch

package info (click to toggle)
pydantic-settings 2.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,100 kB
  • sloc: python: 8,737; makefile: 33
file content (12 lines) | stat: -rw-r--r-- 439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
Index: pydantic-settings/tests/test_docs.py
===================================================================
--- a/tests/test_docs.py
+++ b/tests/test_docs.py
@@ -6,6 +6,7 @@ import sys
 from pathlib import Path
 
 import pytest
+pytest.importorskip("pytest_examples")
 from pytest_examples import CodeExample, EvalExample, find_examples
 from pytest_examples.config import ExamplesConfig
 from pytest_examples.lint import black_format