Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 1, 2024
1 parent 979048e commit 2a5fc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_factoryboy/fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def subfactory_fixture(request: SubRequest, factory_class: FactoryType) -> Any:
overriden_fixture_name = getattr(factory_class._meta, "fixture_name", None)
if overriden_fixture_name is not None:
return request.getfixturevalue(overriden_fixture_name)

fixture = inflection.underscore(factory_class._meta.model.__name__)
return request.getfixturevalue(fixture)

Expand Down

0 comments on commit 2a5fc80

Please sign in to comment.