polyfactory icon indicating copy to clipboard operation
polyfactory copied to clipboard

Simple and powerful factories for mock data generation

Results 57 polyfactory issues
Sort by recently updated
recently updated
newest added

Given the following Pydantic models and Factory: ```python from pydantic_factories import ModelFactory from pydantic import BaseModel class Pet(BaseModel): name: str age: int class Person(BaseModel): name: str pets: list[Pet] age: int...

bug

The library currently doesnt support TypedDict - but pydantic does. We should extend the library to support it.

enhancement
help wanted
good first issue

Hi, is it true? I got an error: ```sh E pydantic_factories.exceptions.ParameterError: Unsupported type: E E Either extend the providers map or add a factory function for this model field ```

enhancement
help wanted
good first issue

Hello! When setting a `.build()` override for a dict where the value is a Pydantic model, it seems to be ignored. **pydantic-factories version 1.6.2** Following code repoduces: note that i...

bug

It would be great to be able to customize the field of a sub-factory (or sub-sub-factory, etc.) right from the parent's build method. For example: ```python class Bar(BaseModel): x: int...

enhancement
help wanted
good first issue

It would be super handy to have some method that would easily create a fixture out of a factory. For example: ```python class SomeLongNamedModel(BaseModel): id: UUID @register_fixture # Or some...

enhancement
help wanted
good first issue

When we have this: ```python class Foo(BaseModel): name: str class Foos(BaseModel): __root__: dict(str, Foo) ``` and this: ```python class FooFactory(ModelFactory): __model__ = Foo class FoosFactory(ModelFactory): __model__ = Foos ``` There...

### Description Hey, I have a model that has a field that is a conlist or a None, in the last version of polyfactories, that stopped working because it is...

bug

### Description In a Pydantic model, when using `Config` field `min_anystr_length` (to set a minimum length for all strings in the model), Polyfactory does not seem to take it into...

bug

### Summary Odmantic [v1 was released](https://github.com/art049/odmantic/releases/tag/v1.0.0) recently, and it switches over to `pydantic v2`. Currently, this is not supported (updating odmantic to v1 will cause the tests to fail) by...

enhancement