Skip to content

Commit

Permalink
fix: update security alert (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
adhtruong authored Dec 2, 2024
1 parent 9ee5852 commit 1e0c847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polyfactory/factories/pydantic_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def get_provider_map(cls) -> dict[Any, Callable[[], Any]]:
PyObject: lambda: "decimal.Decimal",
AmqpDsn: lambda: "amqps://example.com",
KafkaDsn: lambda: "kafka://localhost:9092",
PostgresDsn: lambda: "postgresql://user:secret@localhost",
PostgresDsn: lambda: "postgresql://user@localhost",
RedisDsn: lambda: "redis://localhost:6379/0",
FilePath: lambda: Path(realpath(__file__)),
DirectoryPath: lambda: Path(realpath(__file__)).parent,
Expand All @@ -610,7 +610,7 @@ def get_provider_map(cls) -> dict[Any, Callable[[], Any]]:
pydantic.NaiveDatetime: cls.__faker__.date_time,
pydantic.networks.AmqpDsn: lambda: "amqps://example.com",
pydantic.networks.KafkaDsn: lambda: "kafka://localhost:9092",
pydantic.networks.PostgresDsn: lambda: "postgresql://user:secret@localhost",
pydantic.networks.PostgresDsn: lambda: "postgresql://user@localhost",
pydantic.networks.RedisDsn: lambda: "redis://localhost:6379/0",
pydantic.networks.MongoDsn: lambda: "mongodb://mongodb0.example.com:27017",
pydantic.networks.MariaDBDsn: lambda: "mariadb://example.com:3306",
Expand Down

0 comments on commit 1e0c847

Please sign in to comment.