Skip to content

Commit

Permalink
test: use UserFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Feb 1, 2024
1 parent 309ce94 commit 32cdf93
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import abc
import ddt
from common.djangoapps.student.tests.factories import UserFactory
from django.contrib.auth import get_user_model
from django.core.files.uploadedfile import SimpleUploadedFile
from opaque_keys.edx.locator import BlockUsageLocator, CourseLocator
Expand Down Expand Up @@ -1636,17 +1637,13 @@ class TestContentObjectChildrenExportView(TaggedCourseMixin, APITestCase): # ty
"""
def setUp(self):
super().setUp()
self.user = User.objects.create(
username="user",
email="[email protected]",
)
self.staff = User.objects.create(
self.staff = UserFactory.create(
username="staff",
email="[email protected]",
is_staff=True,
)

self.staffA = User.objects.create(
self.staffA = UserFactory.create(
username="staffA",
email="[email protected]",
)
Expand Down

0 comments on commit 32cdf93

Please sign in to comment.