Skip to content

Commit

Permalink
exclude pydantic v1 only lines from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
enadeau committed Jul 30, 2023
1 parent 5ec0e2f commit a9ccde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo_project/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pydantic import AnyHttpUrl, Field, HttpUrl

if pydantic.VERSION.startswith('1.'):
from pydantic import BaseSettings
from pydantic import BaseSettings # pragma: no cover
else:
from pydantic_settings import BaseSettings

Expand Down

0 comments on commit a9ccde9

Please sign in to comment.