Skip to content

Commit

Permalink
fix worker
Browse files Browse the repository at this point in the history
  • Loading branch information
kbecker42 committed Jun 18, 2024
1 parent 71c7e0a commit de05e26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_api/test_project_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ def test_project_locks_user_worker(self):
""" Test API should return 401 if user is worker"""
worker = UserFactory.create(admin=False, subadmin=False)

# Remove admin from worker.
worker.admin = False
self.user_repo.save(worker)

project = self.setupProjects()
project_id = str(project.id)

Expand Down

0 comments on commit de05e26

Please sign in to comment.