Factories
hypha.apply.stream_forms.testing.factories
¶
BLOCK_FACTORY_DEFINITION
module-attribute
¶
BLOCK_FACTORY_DEFINITION = {None: NON_FILE_BLOCK_FACTORY_DEFINITION, 'image': SubFactory(ImageFieldBlockFactory), 'file': SubFactory(FileFieldBlockFactory), 'multi_file': SubFactory(MultiFileFieldBlockFactory)}
FormFieldBlockFactory
¶
CharFieldBlockFactory
¶
Bases: FormFieldBlockFactory
NumberFieldBlockFactory
¶
Bases: FormFieldBlockFactory
RadioFieldBlockFactory
¶
Bases: FormFieldBlockFactory
UploadableMediaFactory
¶
Bases: FormFieldBlockFactory
help_text
class-attribute
instance-attribute
¶
Meta
¶
make_form_answer
classmethod
¶
make_answer
classmethod
¶
Source code in hypha/apply/stream_forms/testing/factories.py
ImageFieldBlockFactory
¶
Bases: UploadableMediaFactory
help_text
class-attribute
instance-attribute
¶
Meta
¶
make_answer
classmethod
¶
Source code in hypha/apply/stream_forms/testing/factories.py
FileFieldBlockFactory
¶
Bases: UploadableMediaFactory
help_text
class-attribute
instance-attribute
¶
Meta
¶
make_answer
classmethod
¶
Source code in hypha/apply/stream_forms/testing/factories.py
MultiFileFieldBlockFactory
¶
Bases: UploadableMediaFactory