Skip to content

Commit

Permalink
Unit Test Updates (#230)
Browse files Browse the repository at this point in the history
* Update API level for "modern" report templates

* Fix unit test
  • Loading branch information
SchrodingersGat authored May 21, 2024
1 parent 6a92ac1 commit 116e66c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inventree/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# The InvenTree API endpoint changed considerably @ version 197
# Ref: https://github.com/inventree/InvenTree/pull/7074
MODERN_LABEL_PRINTING_API = 198
MODERN_LABEL_PRINTING_API = 201


class LabelPrintingMixin:
Expand Down
2 changes: 1 addition & 1 deletion inventree/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# The InvenTree API endpoint changed considerably @ version 197
# Ref: https://github.com/inventree/InvenTree/pull/7074
MODERN_LABEL_PRINTING_API = 198
MODERN_LABEL_PRINTING_API = 201


class ReportPrintingMixin:
Expand Down
2 changes: 1 addition & 1 deletion test/test_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def test_part_delete(self):
with self.assertRaises(requests.exceptions.HTTPError) as ar:
response = p.delete()

self.assertIn("is active: cannot delete", str(ar.exception))
self.assertIn("Cannot delete this part as it is still active", str(ar.exception))

p.save(data={'active': False})
response = p.delete()
Expand Down

0 comments on commit 116e66c

Please sign in to comment.