Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
ej2 committed Jan 4, 2024
1 parent 485626e commit cc8bb0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/objects/test_creditmemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ def test_valid_object_name(self):

self.assertTrue(result)

def test_to_ref(self):
obj = CreditMemo()
obj.Id = 123

ref = obj.to_ref()
self.assertEqual(ref.value, obj.Id)
self.assertEqual(ref.type, "CreditMemo")


class DiscountLineDetailTests(unittest.TestCase):
def test_init(self):
Expand Down

0 comments on commit cc8bb0a

Please sign in to comment.