Skip to content

Commit

Permalink
Merge pull request #6 from dduong42/master
Browse files Browse the repository at this point in the history
Update README and setup.py
  • Loading branch information
olegpidsadnyi committed May 17, 2015
2 parents 90d115e + a513759 commit 81b3341
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,19 @@ class name.
.. code-block:: python
import factory
from pytest_factoryboy import register
class AuthorFactory(Factory):
class AuthorFactory(factory.Factory):
class Meta:
model = Author
register(Author)
register(AuthorFactory)
def test_factory_fixture(author_factory):
author = author_fixture(name="Charles Dickens")
author = author_factory(name="Charles Dickens")
assert author.name == "Charles Dickens"
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
install_requires=[
"inflection",
"factory_boy",
"pytest",
],
# the following makes a plugin available to py.test
entry_points={
Expand Down

0 comments on commit 81b3341

Please sign in to comment.