Skip to content

Commit

Permalink
Fix for test_part
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Nov 7, 2023
1 parent e94e672 commit 0c0e394
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_part.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,10 @@ def test_part_related(self):

parts = Part.list(self.api)

# First, ensure *all* related parts are deleted
for relation in PartRelated.list(self.api):
relation.delete()

# Take two parts, make them related
# Try with pk values
ret = PartRelated.add_related(self.api, parts[0].pk, parts[1].pk)
Expand Down

0 comments on commit 0c0e394

Please sign in to comment.