Ticket #10: test_oneliner.py
| File test_oneliner.py, 381 bytes (added by ged, 17 months ago) |
|---|
| Line | |
|---|---|
| 1 | from os.path import abspath |
| 2 | from relatorio import Report |
| 3 | |
| 4 | ODT_MIME = 'application/vnd.oasis.opendocument.text' |
| 5 | |
| 6 | if __name__ == '__main__': |
| 7 | print "generating output_oneliner.odt... ", |
| 8 | report = Report(abspath('test_oneliner.odt'), ODT_MIME) |
| 9 | content = report(o={'success': True}).render().getvalue() |
| 10 | file('output_oneliner.odt', 'wb').write(content) |
| 11 | print "done" |
| 12 |
