The CourseEnrollmentFactory.create function is a method of the factories module within the student.tests package in Python. This function is used to create a course enrollment object for testing purposes. It generates and returns a pre-populated course enrollment instance with randomly generated data, such as the enrolled student, the course being taken, the enrollment date, and other relevant information. This factory method is typically used in unit tests to easily create mock course enrollment objects with simulated data.
Python CourseEnrollmentFactory.create - 60 examples found. These are the top rated real world Python examples of student.tests.factories.CourseEnrollmentFactory.create extracted from open source projects. You can rate examples to help us improve the quality of examples.