Skip to content

Commit

Permalink
Remove newline after class statement
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Sep 8, 2020
1 parent be20caf commit 910c4b0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class name.
from pytest_factoryboy import register
class AuthorFactory(factory.Factory):
class Meta:
model = Author
Expand All @@ -74,7 +73,6 @@ class name.
@register
class AuthorFactory(factory.Factory):
class Meta:
model = Author
Expand Down Expand Up @@ -156,7 +154,6 @@ factories/__init__.py:
class AuthorFactory(factory.django.DjangoModelFactory):
"""Author factory."""
name = factory.LazyAttribute(lambda x: faker.name())
Expand All @@ -166,7 +163,6 @@ factories/__init__.py:
class BookFactory(factory.django.DjangoModelFactory):
"""Book factory."""
title = factory.LazyAttribute(lambda x: faker.sentence(nb_words=4))
Expand Down Expand Up @@ -309,20 +305,17 @@ pytest-factoryboy is trying to detect cycles and resolve post-generation depende
class Foo(object):
def __init__(self, value):
self.value = value
class Bar(object):
def __init__(self, foo):
self.foo = foo
@register
class FooFactory(factory.Factory):
"""Foo factory."""
class Meta:
Expand All @@ -336,7 +329,6 @@ pytest-factoryboy is trying to detect cycles and resolve post-generation depende
class BarFactory(factory.Factory):
"""Bar factory."""
foo = factory.SubFactory(FooFactory)
Expand Down

0 comments on commit 910c4b0

Please sign in to comment.