Skip to content

Commit

Permalink
Add docstrings, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
mportesdev committed Mar 27, 2021
1 parent 8228dc3 commit 22b315f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pictureshow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pictureshow.exceptions import PageSizeError, MarginError, LayoutError
from pictureshow.core import PictureShow, pictures_to_pdf

__version__ = '0.5.0'
__version__ = '0.6.0'

__all__ = ['__version__', 'PictureShow', 'pictures_to_pdf',
'PageSizeError', 'MarginError', 'LayoutError']
1 change: 1 addition & 0 deletions pictureshow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def report_results(num_ok, errors, target_path, verbose=False):


def _number(number, noun):
"""Return a repr of amount in correct grammatical number."""
suffix = 's' if number > 1 else ''
return f'{number} {noun}{suffix}'

Expand Down
1 change: 1 addition & 0 deletions tests/unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@


def picture():
"""Return a mock to replace ImageReader objects in tests."""
image_reader = create_autospec(ImageReader, instance=True)
image_reader.getSize.return_value = (640, 400)
return image_reader
Expand Down

0 comments on commit 22b315f

Please sign in to comment.