Skip to content

Commit

Permalink
Unit test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Jun 14, 2024
1 parent 74df85b commit 60ea8b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions inventree/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Company(inventree.base.ImageMixin, inventree.base.MetadataMixin, inventree
""" Class representing the Company database model """

URL = 'company'
MODEL_TYPE = "company"

def getContacts(self, **kwargs):
"""Return contacts associated with this Company"""
Expand Down Expand Up @@ -122,6 +123,7 @@ class ManufacturerPart(
"""

URL = 'company/part/manufacturer'
MODEL_TYPE = "manufacturerpart"

def getParameters(self, **kwargs):
"""
Expand Down
2 changes: 1 addition & 1 deletion test/test_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def test_so_attachment(self):

attachment = Attachment(self.api, pk=pk)

self.assertEqual(attachment.modeL_type, 'salesorder')
self.assertEqual(attachment.model_type, 'salesorder')
self.assertEqual(attachment.model_id, so.pk)
self.assertEqual(attachment.comment, 'Sales order attachment')

Expand Down

0 comments on commit 60ea8b4

Please sign in to comment.