Skip to content

Commit

Permalink
Fix for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Mar 29, 2023
1 parent 061a336 commit 01f64c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ class ContactTest(InvenTreeTestCase):
def test_contact_create(self):
"""Test that we can create a new contact"""

cmp = company.Company.list(self.api, limit=1)[0]
n = company.Contact.count(self.api)

for idx in range(3):
company.Contact.create(self.api, data={
'company': cmp.pk,
'name': f"Random Name {idx}",
'role': f"Random Role {idx}",
})
Expand Down

0 comments on commit 01f64c4

Please sign in to comment.