Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
18c1d871
Commit
18c1d871
authored
4 years ago
by
Awais Qureshi
Browse files
Options
Downloads
Patches
Plain Diff
Pyupgrade in common/djangoapps/coursemodes.
parent
356f169a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/djangoapps/course_modes/tests/test_models.py
+8
-3
8 additions, 3 deletions
common/djangoapps/course_modes/tests/test_models.py
with
8 additions
and
3 deletions
common/djangoapps/course_modes/tests/test_models.py
+
8
−
3
View file @
18c1d871
...
...
@@ -8,17 +8,22 @@ Replace this with more appropriate tests for your application.
import
itertools
from
datetime
import
timedelta
from
unittest.mock
import
patch
import
ddt
import
six
from
django.core.exceptions
import
ValidationError
from
django.test
import
TestCase
,
override_settings
from
django.utils.timezone
import
now
from
unittest.mock
import
patch
from
opaque_keys.edx.locator
import
CourseLocator
import
six
from
common.djangoapps.course_modes.helpers
import
enrollment_mode_display
from
common.djangoapps.course_modes.models
import
CourseMode
,
Mode
,
get_cosmetic_display_price
,
invalidate_course_mode_cache
# lint-amnesty, pylint: disable=line-too-long
from
common.djangoapps.course_modes.models
import
(
# lint-amnesty, pylint: disable=line-too-long
CourseMode
,
Mode
,
get_cosmetic_display_price
,
invalidate_course_mode_cache
)
from
common.djangoapps.course_modes.tests.factories
import
CourseModeFactory
from
openedx.core.djangoapps.content.course_overviews.models
import
CourseOverview
from
xmodule.modulestore.tests.django_utils
import
ModuleStoreTestCase
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment