You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
303 B

import pytest
from courses.factories import CourseFactory, LessonFactory, TopicFactory
@pytest.fixture
def course():
"""
Create course
"""
_course = CourseFactory()
topic = TopicFactory(
course=_course
)
LessonFactory(
topic=topic
)
return _course