Skip to content

Commit

Permalink
remove old test for function that will not be re-added for now
Browse files Browse the repository at this point in the history
  • Loading branch information
matmair committed Sep 1, 2024
1 parent 534f90a commit 1a2fb23
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/backend/InvenTree/report/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,24 +580,6 @@ def test_print(self):
Attachment.objects.filter(model_id=item.pk, model_type='stockitem').exists()
)

return
# TODO @matmair - Re-add this test after https://github.com/inventree/InvenTree/pull/7074/files#r1600694356 is resolved
# Change the setting, now the test report should be attached automatically
InvenTreeSetting.set_setting('REPORT_ATTACH_TEST_REPORT', True, None)

response = self.post(
url, {'template': template.pk, 'items': [item.pk]}, expected_code=201
)

# There should be a link to the generated PDF
self.assertEqual(response.data['output'].startswith('/media/report/'), True)

# Check that a report has been uploaded
attachment = Attachment.objects.filter(
model_id=item.pk, model_type='stockitem'
).first()
self.assertIsNotNone(attachment)

def test_mdl_build(self):
"""Test the Build model."""
self.run_print_test(Build, 'build', label=False)
Expand Down

0 comments on commit 1a2fb23

Please sign in to comment.