Skip to content

Commit

Permalink
Test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Dec 3, 2023
1 parent f4ace2b commit 7e47cf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/creating_images.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Creating images
.. _faker-file: https://pypi.org/project/faker-file/

Creating images could be a challenging task. The goal of this library
is to help you out with basic tasks. You can easily generate very basic
graphic images, but no custom shapes. Paper size is A4.
Creating images for testing could be a challenging job. The goal of this
library is to help you out with basic tasks. You can easily generate very
basic graphic images, but no custom shapes. Paper size is A4.

If you don't like how image files are generated by this library, you can
check the `faker-file`_ package, which can produce complex images.
Expand Down
4 changes: 4 additions & 0 deletions docs/factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Django example
from article.models import Article
# For Django, all files shall be placed inside `MEDIA_ROOT` directory.
# That's why you need to apply this trick - define a
# custom `FileSystemStorage` class and pass it to the file factory as
# `storage` argument.
STORAGE = FileSystemStorage(root_path=settings.MEDIA_ROOT, rel_path="tmp")
class UserFactory(DjangoModelFactory):
Expand Down

0 comments on commit 7e47cf4

Please sign in to comment.