import wagtail_factories from vbv_lernwelt.learnpath.models import LearningPath, Topic, Circle, LearningSequence, LearningContent, LearningUnit from vbv_lernwelt.learnpath.models_learning_unit_content import VideoBlock, OnlineTrainingBlock, \ ExerciseBlock, DocumentBlock, ResourceBlock, TestBlock, BookBlock, MediaLibraryBlock, AssignmentBlock class LearningPathFactory(wagtail_factories.PageFactory): title = "Versicherungsvermittler/in" class Meta: model = LearningPath class TopicFactory(wagtail_factories.PageFactory): title = "Gewinnen von Kunden" is_visible = True class Meta: model = Topic class CircleFactory(wagtail_factories.PageFactory): title = "Gewinnen" class Meta: model = Circle class LearningSequenceFactory(wagtail_factories.PageFactory): title = "Grundlagen" class Meta: model = LearningSequence class LearningUnitFactory(wagtail_factories.PageFactory): title = 'Lerneinheit' class Meta: model = LearningUnit class LearningContentFactory(wagtail_factories.PageFactory): title = 'Lerninhalt' class Meta: model = LearningContent class VideoBlockFactory(wagtail_factories.StructBlockFactory): url = "https://www.youtube.com/embed/qhPIfxS2hvI" description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam" class Meta: model = VideoBlock class AssignmentBlockFactory(wagtail_factories.StructBlockFactory): description = "Beispiel Auftrag" class Meta: model = AssignmentBlock class BookBlockFactory(wagtail_factories.StructBlockFactory): description = "Beispiel Buch" class Meta: model = BookBlock class DocumentBlockFactory(wagtail_factories.StructBlockFactory): description = "Beispiel Dokument" class Meta: model = DocumentBlock class ExerciseBlockFactory(wagtail_factories.StructBlockFactory): description = "Beispiel Übung" class Meta: model = ExerciseBlock class OnlineTrainingBlockFactory(wagtail_factories.StructBlockFactory): url = "/static/media/web_based_trainings/rise_cmi5_test_export/scormcontent/index.html" description = "Beispiel Rise Modul" class Meta: model = OnlineTrainingBlock class TestBlockFactory(wagtail_factories.StructBlockFactory): description = "Beispiel Test" class Meta: model = TestBlock class ResourceBlockFactory(wagtail_factories.StructBlockFactory): description = "Beispiel Hilfsmittel" class Meta: model = ResourceBlock class MediaLibraryBlockFactory(wagtail_factories.StructBlockFactory): description = "Beispiel Mediathekeninhalt" class Meta: model = MediaLibraryBlock