from django.dispatch import receiver

from pretix.base.signals import determine_availability


@receiver(determine_availability)
def availability_handler(sender, **kwargs):
    kwargs['sender'] = sender
    variations = kwargs['variations']
    if sender.settings.testdummy_available is not None:
        variations = [d.copy() for d in variations]
        for v in variations:
            v['available'] = (sender.settings.testdummy_available == 'yes')
        return variations
    return []

@@ -200,46 +200,8 @@
 der%0A
-    variations = kwargs%5B'variations'%5D%0A
     
@@ -252,16 +252,58 @@
 t None:%0A
+        variations = kwargs%5B'variations'%5D%0A
         

Fix failing plugins test