def setUpClass(cls): super().setUpClass() cls.repeater = FormRepeater( domain=cls.domain, url="form-repeater-url", ) cls.repeatergenerator = FormRepeaterXMLPayloadGenerator( repeater=cls.repeater) cls.repeater.save()
def setUpClass(cls): super(FormPayloadGeneratorTest, cls).setUpClass() cls.domain_name = "test-domain" cls.domain = create_domain(cls.domain_name) cls.repeater = FormRepeater( domain=cls.domain_name, url="form-repeater-url", ) cls.repeatergenerator = FormRepeaterXMLPayloadGenerator( repeater=cls.repeater) cls.repeater.save()
def setUpClass(cls): super().setUpClass() cls.connx = ConnectionSettings.objects.create( domain=cls.domain, url="form-repeater-url", ) cls.repeater = FormRepeater( domain=cls.domain, connection_settings_id=cls.connx.id, ) cls.repeatergenerator = FormRepeaterXMLPayloadGenerator( repeater=cls.repeater) cls.repeater.save()
def generator(self): return FormRepeaterXMLPayloadGenerator(self)