Skip to content

Commit 116e66c

Browse files
Unit Test Updates (#230)
* Update API level for "modern" report templates * Fix unit test
1 parent 6a92ac1 commit 116e66c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

inventree/label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

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

1414

1515
class LabelPrintingMixin:

inventree/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

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

1010

1111
class ReportPrintingMixin:

test/test_part.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def test_part_delete(self):
394394
with self.assertRaises(requests.exceptions.HTTPError) as ar:
395395
response = p.delete()
396396

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

399399
p.save(data={'active': False})
400400
response = p.delete()

0 commit comments

Comments
 (0)