Skip to content

Commit

Permalink
more test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglinfang committed Dec 21, 2022
1 parent 23cb028 commit 2879739
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions uw_hrp/tests/test_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ def test_get_person_by_regid(self):
self.assertTrue(person.is_active)
self.assertEqual(person.primary_manager_id, "100000001")
self.assertEqual(len(person.worker_details), 1)
self.assertIsNotNone(person.to_json())
json_worker_details = person.to_json()['worker_details']
self.assertEqual(len(json_worker_details), 1)
self.assertEqual(
len(json_worker_details[0]['active_positions']), 2)
position = person.worker_details[0]
self.assertEqual(len(position.other_active_positions), 1)
self.maxDiff = None
Expand Down

0 comments on commit 2879739

Please sign in to comment.