Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b461ce0c
Commit
b461ce0c
authored
Oct 26, 2017
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename test files and class name
parent
ea8da673
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
openedx/core/djangoapps/schedules/management/commands/tests/send_email_base.py
+2
-2
openedx/core/djangoapps/schedules/management/commands/tests/test_send_email_base_command.py
+0
-0
openedx/core/djangoapps/schedules/management/commands/tests/test_send_recurring_nudge.py
+2
-2
openedx/core/djangoapps/schedules/management/commands/tests/test_send_upgrade_reminder.py
+2
-2
No files found.
openedx/core/djangoapps/schedules/management/commands/tests/
tools
.py
→
openedx/core/djangoapps/schedules/management/commands/tests/
send_email_base
.py
View file @
b461ce0c
...
...
@@ -50,7 +50,7 @@ LOG = logging.getLogger(__name__)
@ddt.ddt
@freeze_time
(
'2017-08-01 00:00:00'
,
tz_offset
=
0
,
tick
=
True
)
class
Schedule
Base
EmailTestBase
(
SharedModuleStoreTestCase
):
class
Schedule
Send
EmailTestBase
(
SharedModuleStoreTestCase
):
__test__
=
False
...
...
@@ -59,7 +59,7 @@ class ScheduleBaseEmailTestBase(SharedModuleStoreTestCase):
has_course_queries
=
False
def
setUp
(
self
):
super
(
Schedule
Base
EmailTestBase
,
self
)
.
setUp
()
super
(
Schedule
Send
EmailTestBase
,
self
)
.
setUp
()
site
=
SiteFactory
.
create
()
self
.
site_config
=
SiteConfigurationFactory
.
create
(
site
=
site
)
...
...
openedx/core/djangoapps/schedules/management/commands/tests/test_
base
.py
→
openedx/core/djangoapps/schedules/management/commands/tests/test_
send_email_base_command
.py
View file @
b461ce0c
File moved
openedx/core/djangoapps/schedules/management/commands/tests/test_send_recurring_nudge.py
View file @
b461ce0c
...
...
@@ -14,7 +14,7 @@ from course_modes.tests.factories import CourseModeFactory
from
courseware.models
import
DynamicUpgradeDeadlineConfiguration
from
openedx.core.djangoapps.schedules
import
tasks
from
openedx.core.djangoapps.schedules.management.commands
import
send_recurring_nudge
as
nudge
from
openedx.core.djangoapps.schedules.management.commands.tests.
tools
import
ScheduleBase
EmailTestBase
from
openedx.core.djangoapps.schedules.management.commands.tests.
send_email_base
import
ScheduleSend
EmailTestBase
from
openedx.core.djangoapps.schedules.tests.factories
import
ScheduleFactory
from
openedx.core.djangolib.testing.utils
import
skip_unless_lms
from
student.tests.factories
import
UserFactory
...
...
@@ -24,7 +24,7 @@ from student.tests.factories import UserFactory
@skip_unless_lms
@skipUnless
(
'openedx.core.djangoapps.schedules.apps.SchedulesConfig'
in
settings
.
INSTALLED_APPS
,
"Can't test schedules if the app isn't installed"
)
class
TestSendRecurringNudge
(
Schedule
Base
EmailTestBase
):
class
TestSendRecurringNudge
(
Schedule
Send
EmailTestBase
):
__test__
=
True
# pylint: disable=protected-access
...
...
openedx/core/djangoapps/schedules/management/commands/tests/test_send_upgrade_reminder.py
View file @
b461ce0c
...
...
@@ -11,7 +11,7 @@ from opaque_keys.edx.locator import CourseLocator
from
course_modes.models
import
CourseMode
from
openedx.core.djangoapps.schedules
import
tasks
from
openedx.core.djangoapps.schedules.management.commands
import
send_upgrade_reminder
as
reminder
from
openedx.core.djangoapps.schedules.management.commands.tests.
tools
import
ScheduleBase
EmailTestBase
from
openedx.core.djangoapps.schedules.management.commands.tests.
send_email_base
import
ScheduleSend
EmailTestBase
from
openedx.core.djangoapps.schedules.tests.factories
import
ScheduleFactory
from
openedx.core.djangolib.testing.utils
import
skip_unless_lms
from
student.tests.factories
import
UserFactory
...
...
@@ -24,7 +24,7 @@ LOG = logging.getLogger(__name__)
@skip_unless_lms
@skipUnless
(
'openedx.core.djangoapps.schedules.apps.SchedulesConfig'
in
settings
.
INSTALLED_APPS
,
"Can't test schedules if the app isn't installed"
)
class
TestUpgradeReminder
(
Schedule
Base
EmailTestBase
):
class
TestUpgradeReminder
(
Schedule
Send
EmailTestBase
):
__test__
=
True
tested_task
=
tasks
.
ScheduleUpgradeReminder
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment