Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
PSNAppz committed Nov 28, 2024
1 parent e4c23ed commit 505cfea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions g2p_social_registry/tests/test_g2p_que_id_generation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from odoo.tests import TransactionCase
from odoo.exceptions import ValidationError
from odoo import fields


class TestG2PQueIDGeneration(TransactionCase):
Expand All @@ -25,7 +26,7 @@ def test_create_g2p_queue_record(self):
"""
self.assertTrue(self.g2p_queue, "G2PQueIDGeneration record was not created.")
self.assertEqual(
self.g2p_queue.registrant_id, self.partner1,
self.g2p_queue.registrant_id, self.partner1.id,
"Registrant ID does not match the expected partner."
)
self.assertEqual(
Expand Down Expand Up @@ -95,7 +96,7 @@ def test_multiple_g2p_queue_records(self):

self.assertTrue(record2, "Second G2PQueIDGeneration record was not created.")
self.assertEqual(
record2.registrant_id, self.partner2,
record2.registrant_id, self.partner2.id,
"Registrant ID for the second record does not match the expected partner."
)
self.assertEqual(
Expand Down

0 comments on commit 505cfea

Please sign in to comment.