Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faker still breaking in v34.0.2 #2156

Closed
moyoakala opened this issue Jan 23, 2025 · 1 comment
Closed

Faker still breaking in v34.0.2 #2156

moyoakala opened this issue Jan 23, 2025 · 1 comment

Comments

@moyoakala
Copy link

moyoakala commented Jan 23, 2025

I still get error:

    raise ValueError("empty range for _rand_seconds: start datetime must be before than end datetime")
ValueError: empty range for _rand_seconds: start datetime must be before than end datetime

factory-boy-3.3.1, Faker-34.0.2

Here is how the faker is called:

class BaseFactory(factory.django.DjangoModelFactory):
    class Meta:
        model = Some_Model

    date = factory.Faker(
        "past_date",
        start_date=datetime.datetime(1980, 1, 1, tzinfo=datetime.UTC),
    )
@fcurella
Copy link
Collaborator

Changes have been reverted in v35.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants