From 7e09bf580046258066423bda1f1c0115365aef45 Mon Sep 17 00:00:00 2001 From: Suejung Shin Date: Wed, 29 Jan 2025 15:45:49 -0800 Subject: [PATCH] fix test --- tasks/tests/unit/test_sync_teams_task.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/tests/unit/test_sync_teams_task.py b/tasks/tests/unit/test_sync_teams_task.py index 8b7056e33..cfed4ac47 100644 --- a/tasks/tests/unit/test_sync_teams_task.py +++ b/tasks/tests/unit/test_sync_teams_task.py @@ -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