Skip to content

Commit

Permalink
Merge pull request #2441 from uktrade/fix-failing-tests
Browse files Browse the repository at this point in the history
Add role for mod officer user in tests
  • Loading branch information
kevincarrogan authored Mar 4, 2025
2 parents e20d6f1 + 8f042ce commit d3233ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/tests/unit/fixtures/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def fcdo_countersigner_headers(fcdo_countersigner):
def mod_officer():
gov_user = GovUserFactory()
gov_user.team = Team.objects.get(id=TeamIdEnum.MOD_CAPPROT)
gov_user.role = RoleFactory(name="MOD CapProt officer", type=UserType.INTERNAL)
gov_user.save()
return gov_user

Expand Down

0 comments on commit d3233ff

Please sign in to comment.