fix outgoing sync tests

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt
2025-06-27 17:07:36 +02:00
parent 9c01c7d890
commit 7fcd65e318
2 changed files with 2 additions and 6 deletions

View File

@ -76,7 +76,7 @@ class TestCheckAndPurgePasswordHistory(TestCase):
self.assertTrue(UserPasswordHistory.objects.exists())
# Run the task - should purge since no policy is in use
check_and_purge_password_history()
check_and_purge_password_history.send()
# Verify the table is empty
self.assertFalse(UserPasswordHistory.objects.exists())
@ -99,7 +99,7 @@ class TestCheckAndPurgePasswordHistory(TestCase):
self.assertTrue(UserPasswordHistory.objects.exists())
# Run the task - should NOT purge since a policy is in use
check_and_purge_password_history()
check_and_purge_password_history.send()
# Verify the entries still exist
self.assertTrue(UserPasswordHistory.objects.exists())

View File

@ -258,10 +258,6 @@ class SyncTasks:
for provider in self._provider_model.objects.filter(
Q(backchannel_application__isnull=False) | Q(application__isnull=False)
):
task_sync_signal_m2m.send_with_options(
args=(instance_pk, provider.pk, action, pk_set),
rel_obj=provider,
)
# reverse: instance is a Group, pk_set is a list of user pks
# non-reverse: instance is a User, pk_set is a list of groups
if reverse: