Skip to content

Commit bdc240f

Browse files
Unit test fix (#263)
* Update API level for "modern" report templates * Adjust unit testing - Support new report printing API - Ref: inventree/InvenTree#9096
1 parent d186356 commit bdc240f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_report.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def test_print_report(self):
5151
# Print the report
5252
response = build.printReport(template)
5353

54-
for key in ['pk', 'model_type', 'output', 'template']:
54+
for key in ['pk', 'output']:
5555
self.assertIn(key, response)
5656

5757
self.assertIsNotNone(response['output'])
58-
self.assertEqual(response['template'], template.pk)
59-
self.assertEqual(response['model_type'], build.getModelType())

0 commit comments

Comments
 (0)