Skip to content

Commit

Permalink
Fixed a test related to ReportGroup.force_new_page
Browse files Browse the repository at this point in the history
  • Loading branch information
marinho committed Sep 23, 2010
1 parent a977166 commit 6219ea1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2010-09-23: Version 0.4.9-stable
--------------------------------
* Fixed a test related to ReportGroup.force_new_page

2010-07-05: Version 0.4.8-stable
--------------------------------
* Fixed problem on ReportGroup.force_new_page
Expand Down
2 changes: 1 addition & 1 deletion geraldo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
- tests - a package with automated doc tests.
"""

VERSION = (0, 4, 8, 'stable')
VERSION = (0, 4, 9, 'stable')

def get_version():
return '%d.%d.%d-%s'%VERSION
Expand Down
3 changes: 3 additions & 0 deletions geraldo/tests/07-groupping.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,15 @@ PDF common generation with users

Page with half height

>>> report.title = 'Groupping demonstration - half size'
>>> report.find_by_name('first-group').force_new_page = False
>>> report.page_size = (A4[0], A4[1] / 2)
>>> report.generate_by(PDFGenerator, filename=os.path.join(cur_dir, 'output/groupping-report-half-height.pdf'))

Page with half height with new group in the begin of second page

>>> report.title = 'Groupping demonstration - group at new page'
>>> report.find_by_name('first-group').force_new_page = True
>>> report.queryset = report.queryset.exclude(username='Betty')
>>> report.generate_by(PDFGenerator, filename=os.path.join(cur_dir, 'output/groupping-report-half-height-2.pdf'))

0 comments on commit 6219ea1

Please sign in to comment.