fixed imports

This commit is contained in:
Lorenz Padberg 2022-03-31 17:35:48 +02:00
parent 18233aa4e6
commit af3b7da461
4 changed files with 9 additions and 9 deletions

View File

@ -1,13 +1,13 @@
from django.test import TestCase
from server.vbv_lernwelt.core.models import User
from vbv_lernwelt.core.models import User
from vbv_lernwelt.core.tests.factories import UserFactory
from vbv_lernwelt.simpletodo.models import SimpleList
class TestUserCreation(TestCase):
def test_create_user(self):
User(name='Sepp').save()
User(last_name='Sepp').save()
def test_simple(self):
# create_default_learning_path()

View File

@ -1,4 +1,4 @@
from server.vbv_lernwelt.learnpath.tests.learningpath_factories import LearningPathFactory
from vbv_lernwelt.learnpath.tests.learningpath_factories import LearningPathFactory
def create_default_learning_path():

View File

@ -1,9 +1,8 @@
import factory
from server.vbv_lernwelt.learnpath.models import LearningPath
import wagtail_factories
from vbv_lernwelt.learnpath.models import LearningPath
class LearningPathFactory(factory.django.DjangoModelFactory):
class LearningPathFactory(wagtail_factories.PageFactory):
class Meta:
model = LearningPath

View File

@ -1,10 +1,11 @@
from django.test import TestCase
from server.vbv_lernwelt.learnpath.models import LearningPath
from server.vbv_lernwelt.learnpath.tests.creat_default_learning_path import create_default_learning_path
from vbv_lernwelt.learnpath.models import LearningPath
from vbv_lernwelt.learnpath.tests.create_default_learning_path import create_default_learning_path
class TestCreateDefaultLearningPaths(TestCase):
def test_create_learning_path(self):
create_default_learning_path()
self.assertTrue(LearningPath.objects.filter(title="Versicherungsvermittler/in").exist())