fix outgoing sync tests
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
@ -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())
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user