-
#### The problem
The class `factory.Faker` is a wrapper around the "real" Faker.
It works fine but sometimes you need to use it inside a LazyAttribute and you need to generate a value.
At the mom…
-
I'm not sure if I'm using this wrong but when I define a factory such as:
```
class UserFactory(factory.django.DjangoModelFactory[User]):
class Meta:
model = User
```
I get t…
-
```
classmethod _after_postgeneration(cls, obj, create, results=None)
Parameters:
obj (object) – The object just generated
create (bool) – Whether the object was ‘built’ or ‘created’
results (di…
-
#### Description
Factory_boy keeps SQLAlchemy instances passed as argument to factories in memory, causing a memory leak and changing what requests SQLAlchemy performs.
The changed behavior for …
-
#### Description
A regression done in https://github.com/FactoryBoy/factory_boy/pull/799 causes a RecursionError. After upgrading from 3.2.0 to 3.2.1 the error happened.
To verify that this was re…
-
```py
# models.py
assoc_managers_roles = sa.Table(
"assoc_managers_roles",
Base.metadata,
sa.Column(
"manager_id",
sa.Integer,
sa.ForeignKey("managers.id", …
-
No parameters are generated for model-only parameters. We often have Django model defaults which we don't override in factories, but do override in tests. For example:
``` python
class Book(models.Mo…
ekohl updated
6 years ago
-
#### The problem
Let's say we have following factory for currency:
```python
class CurrencyFactory(factory.django.DjangoModelFactory):
""" Currency Factory
"""
name = factory.Faker('…
-
### Describe your proposal
Hi there, thanks for your work on this package! I've used factory boy before and I like how the api is sort of similar to work with, but this time with actual type support …
-
## Problem
Saleor is using `pytest` with `fixtures` to prepare data for tests. We now have more than 10k tests and around 800 fixtures. The fixtures contain a lot of repetition and became hard to mai…
aniav updated
11 months ago