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.
|
import pytest
|
|
|
|
from factories.courses import CourseFactory, LessonFactory, TopicFactory
|
|
|
|
|
|
@pytest.fixture
|
|
def course():
|
|
"""
|
|
Create course
|
|
"""
|
|
_course = CourseFactory()
|
|
topic = TopicFactory(
|
|
course=_course
|
|
)
|
|
LessonFactory(
|
|
topic=topic
|
|
)
|
|
return _course
|
|
|