Usama Sadiq
7f6cabbf98
Ran pyupgrade on lms/djangoapps ( #26519 )
...
* refactor: ran pyupgrade on lms/djangoapps/bulk_enroll
Co-authored-by: M. Zulqarnain <muhammad.zulqarnain@arbisoft.com >
2021-03-01 17:13:18 +05:00
Aarif
f35ff6a1eb
replaced unittest assertions pytest assertions ( #26540 )
2021-02-18 19:13:47 +05:00
M. Zulqarnain
6f2d54d53b
BOM-2268 : Add Pylint amnesty for Bulk Email ( #26208 )
...
* Add Amnest for Bulk Email
2021-02-03 18:15:37 +05:00
Calen Pennington
2714da86a4
Always import task packages by absolute paths
...
This follows the recommendation in the Celery documentation so as to
not confuse automatic task name generation.
Docs: https://docs.celeryproject.org/en/stable/userguide/tasks.html#automatic-naming-and-relative-imports
2020-10-08 14:10:17 -04:00
Calen Pennington
4a120a9e26
Fix failures caused by removing lms/djangoapps from sys.path
2020-09-23 10:05:37 -04:00
Feanil Patel
2df8b8226b
Merge pull request #22643 from edx/feanil/2to3_asserts
...
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Feanil Patel
70294b0ad2
Run 2to3 -f asserts . -w on edx-platform.
...
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
Stu Young
da616921f0
INCR-257 Run python-modernize on lms/djangoapps/bulk_email/migrations and lms/djangoapps/bulk_email/tests ( #20563 )
...
* run python modernize
* run isort
* Fix quality
2019-05-21 11:34:42 -04:00
Michael Youngstrom
3221c2b91f
Remove lms pytest shards
2019-02-12 11:03:46 -05:00
Matthew Piatetsky
6e81c84d8b
fix unicode strings in lms/ part 1
2019-02-05 15:15:02 -05:00
cclauss
8fca11b85c
Use print() function in both Python 2 and Python 3
2019-01-13 17:16:37 +01:00
Awais Jibran
ac3c274d57
Skip sending email if an email address contains non-ascii char.
2018-09-27 22:45:15 +05:00
Jeremy Bowman
1a5bf35357
TE-2689 Remove useless pylint suppressions part 2
2018-08-14 17:39:02 -04:00
Jeremy Bowman
ca3316962d
TE-2524 Stop using nose.plugins - LMS 1
2018-07-31 13:03:18 -04:00
Stuart Young
1fd2167144
rebalance python unittests onto new shards
2018-05-03 11:16:05 -04:00
cahrens
6f71706b17
Remove SlashSeparatedCourseKey from tests.
2017-08-07 14:49:30 -04:00
Andy Armstrong
79acb5c5be
Reorder LMS imports using isort
2017-06-11 21:48:06 -04:00
Omar Al-Ithawi
3739cc4549
Make the course lang override platform lang
2017-04-05 16:48:53 +03:00
Sanford Student
54d34e834d
update all references to instructor module
2016-10-12 11:35:02 -04:00
Douglas Hall
4ac746a20b
Add the course root to the bulk email template context so that templates can customize the full course URL with a custom hostname.
2016-09-19 15:34:55 -04:00
Calen Pennington
bc20a37c2b
Simplify how shards are selected in CI
2016-08-03 16:23:02 -04:00
Eric Fischer
a9a3fabfe8
Bulk Email Multiselect ( #12301 )
...
TNL-4356
Allows multiple bulk email targets to be specified at once.
-The previous "All" option has been split into "Staff" and "Learners"
-The backend changes made here lay the groundwork for cohort emailing
-The data migration, 0005, is somewhat large and requires deploy attention
-Tests have been updated
-Numerous safe-commit-linter fixes are included
2016-05-26 14:22:04 -04:00
Ben Patterson
1db84e79df
Additional shard balancing changes for unit tests.
2016-04-28 10:09:32 -04:00
Ned Batchelder
43ac38aa87
Add autospec to all mocks
2015-12-09 09:44:22 -05:00
Ned Batchelder
f5d0f3ff55
Remove useless pylint suppressions
2015-11-22 07:41:19 -05:00
Giovanni Di Milia
08dfe5e99f
Fixed pylint violation for files in lms/djangoapps/bulk_email
2015-10-14 14:45:32 -04:00
Ned Batchelder
f54fe787c6
Remove needless 'disable=no-member' pragmas
2015-08-03 17:47:44 -04:00
Shrhawk
dd20badcf7
Merge pull request #7996 from edx/shr/bug/TNL-2119-Unicode-error-in-templating-bulk-course
...
bulk_email fix course_image_unicode name
2015-05-15 23:31:01 +05:00
Syed Hassan Raza
f199c305b9
bulk_email fix course_image_unicode name
2015-05-12 01:49:02 +05:00
Christine Lytwynec
08993aead6
Merge pull request #7959 from edx/clytwynec/split_lms_unittests_into_shards
...
Clytwynec/split lms unittests into shards
2015-05-08 14:19:25 -04:00
Feanil Patel
e4aa91d510
Remove the mock, it doesn't seem like it's needed.
2015-05-08 09:01:49 -04:00
Christine Lytwynec
ddb1ae667e
Split lms unittests into multiple shards
2015-05-07 09:17:26 -04:00
Christine Lytwynec
3127ac2b6c
mock html_to_text for tests
2015-01-05 16:19:36 -05:00
Sarina Canelake
19f1dacab2
s/pylint: disable=E1101/pylint: disable=no-member/
2014-12-01 11:22:09 -05:00
Calen Pennington
cfcbdc0145
Move to OpaqueKey implementations from the external library
...
[LMS-2757]
2014-05-29 17:03:35 -04:00
Calen Pennington
cd746bf8e5
Make course ids and usage ids opaque to LMS and Studio [partial commit]
...
This commit adds the non-courseware lms/djangoapps and lms/lib.
These keys are now objects with a limited interface, and the particular
internal representation is managed by the data storage layer (the
modulestore).
For the LMS, there should be no outward-facing changes to the system.
The keys are, for now, a change to internal representation only. For
Studio, the new serialized form of the keys is used in urls, to allow
for further migration in the future.
Co-Author: Andy Armstrong <andya@edx.org >
Co-Author: Christina Roberts <christina@edx.org >
Co-Author: David Baumgold <db@edx.org >
Co-Author: Diana Huang <dkh@edx.org >
Co-Author: Don Mitchell <dmitchell@edx.org >
Co-Author: Julia Hansbrough <julia@edx.org >
Co-Author: Nimisha Asthagiri <nasthagiri@edx.org >
Co-Author: Sarina Canelake <sarina@edx.org >
[LMS-2370]
2014-05-08 12:09:23 -04:00
Brian Wilson
0f8f82c845
Define and use SubtaskStatus class.
2013-10-28 12:57:41 -04:00
Brian Wilson
ba6477abef
Handle all exceptions returned by django-ses.
2013-10-18 15:12:07 -04:00
Brian Wilson
288ccb1e36
Check that email subtasks are known to the InstructorTask before executing.
2013-10-15 18:34:31 -04:00
Brian Wilson
58bacb4e67
Rename some constants, and refactor bulk email task flow.
2013-10-10 15:34:16 -04:00
Brian Wilson
03b4330c04
Update tests with more complete coverage.
2013-10-10 15:34:16 -04:00
Brian Wilson
39e8b718ca
Move subtask update logic that was only needed for tests into the tests that needed it.
2013-10-10 15:34:16 -04:00
Brian Wilson
8910ea08b1
Don't send emails to students who haven't activated.
2013-10-10 15:33:00 -04:00
Brian Wilson
c787a8f500
Add more task-level tests for retries and other errors. Respond to initial comments.
2013-10-10 15:32:59 -04:00
Brian Wilson
e052dde4f5
Fix subtask code to handle (tests) running in eager mode.
2013-10-10 15:32:59 -04:00
Brian Wilson
506f91a95e
Use separate retry count for calculating retry delay.
2013-10-10 15:32:59 -04:00