Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
suejung-sentry committed Jan 29, 2025
1 parent 3b28bbb commit 7e09bf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/tests/unit/test_sync_teams_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ def test_team_removed(self, mocker, mock_configuration, dbsession, codecov_vcr):
service="github",
unencrypted_oauth_token=token,
)
prev_team.plan_activated_users = [user.ownerid]
dbsession.add(user)
dbsession.flush()
SyncTeamsTask().run_impl(dbsession, user.ownerid, using_integration=False)
assert prev_team.ownerid not in user.organizations
assert user.ownerid not in prev_team.plan_activated_users

def test_team_data_updated(
self, mocker, mock_configuration, dbsession, codecov_vcr
Expand Down

0 comments on commit 7e09bf5

Please sign in to comment.