Awais Jibran
e2b60e1c97
bug: fix an edge case in capa problem tolerance
...
PROD-1586
2020-07-20 15:27:47 +05:00
Luis Moreno
1d557616b1
Fix test for python3.8
2020-06-23 10:16:37 -04:00
Aarif
98af9ce418
remove useless-supression warnings
2020-05-01 19:42:15 +05:00
SaadYousaf
9160d4aa9b
address deprecation warning for cgi.escape for logs cleanup.
2020-04-15 15:14:00 +05:00
Aarif
6ee2089077
fixed warnings for wrong-import-order
2020-04-08 23:43:06 +05:00
Jeremy Bowman
5c40a3729a
Stop using deprecated assertions ( #23579 )
...
Replace some usage of deprecated assertions with non-deprecated equivalents.
2020-04-02 11:06:37 -04:00
Ahtisham Shahid
ef40efae9b
update added workaround for csv error
2020-03-09 17:35:12 +05:00
Ahtisham Shahid
4efcfca34a
created logs to capture capa problem errors
...
Update logs
updated logger
2020-03-05 12:54:04 +05:00
Awais Jibran
44199c3f72
Workaround the error in find_question_label. ( #23247 )
...
* Workaround the error in find_question_label.
This is a temporary log, which will give us information and unblock the course team.
PROD-1326
* raise exception after logging it.
2020-03-04 17:55:35 +05:00
Awais Jibran
9032562cbd
Fix Error in find_question_label.
2020-02-27 10:55:18 +05:00
Awais Jibran
eaaebc6d93
Merge pull request #169 from edx/aj/sec-fix-capa
...
SECURITY FIX : Fix CAPA Problems
2020-02-13 13:52:29 +05:00
DawoudSheraz
0b1c7db967
add multiple correct values check for Dropdown problems
2020-02-10 11:36:28 +05:00
Awais Jibran
bcb2038843
Fix CAPA Problems
2020-02-04 17:51:18 +05:00
Feanil Patel
046feb0cf0
Merge pull request #22649 from edx/feanil/fix_pep8
...
Fix all E303 pep8 errors.
2019-12-30 13:32:26 -05:00
Feanil Patel
6e3fe00fff
Fix all E303 pep8 errors.
2019-12-30 12:25:38 -05: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
39d3a7ca17
Fix pep8 issues caused by the fixer.
2019-12-30 11:42:04 -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
Zainab Amir
257c635a68
Fix Targeted Feedback HTML ( #22606 )
...
etree.tostring returns bytes instead of string which when converted
back to XML, to be rendered as etree element, presents stray
characters.
PROD-1116
2019-12-30 15:06:02 +05:00
DawoudSheraz
2ac5fa160c
remove unnecessary logs
2019-11-14 16:33:07 +05:00
DawoudSheraz
3787dcd7fb
added conditional logs for RCA
2019-11-06 18:35:06 +05:00
Awais Jibran
d891ae5522
Merge pull request #22192 from edx/aj/improve-logging-capa
...
Add error in logging
2019-11-01 11:25:28 +05:00
Jeremy Bowman
a6b8cbe627
Remove obsolete field type BOM-996 ( #22203 )
2019-10-31 15:23:58 -04:00
Awais Jibran
5e11708e11
Adding ContextualizeTextError.
2019-10-31 23:37:20 +05:00
Feanil Patel
9f9d904592
Update code to use the new rounding method.
...
See the commit that added round_away_from_zero for details.
IN the case of dashboard_data.py:
We don't first cast to decimal here because in python 2 this didn't do
anything. The python 2 rounding method would just cast things to float
before doing the rounding anyway so it just wastes cpu cycles. In
python 3 this causes some typing issues so just removing it.
2019-10-31 14:29:57 -04:00
Feanil Patel
c009d4550a
Pass back the answer html as a string instead of bytes.
...
We did this already for the 'get_html' function for a capa problem but
there wasn't a test to ensure this works correctly for the
get_question_answer function that powers the show answer button.
I ran into it while doing a quick smoke test on the python 3 sandbox.
2019-10-24 09:46:26 -04:00
Jeremy Bowman
d4b0968e3a
Fix JSON parsing in edxnotes.helpers BOM-990 ( #22122 )
2019-10-22 17:57:01 -04:00
Manjinder Singh
936e1d48a3
BOM-928: Fixing test error due to dict ordering ( #22055 )
...
* Fixing test error due to dict ordering
* Dict ordering fixes
* replacing dict with list to maintain consistency
* better html parsing
2019-10-22 09:30:24 -04:00
Ayub
8aa2fad4ec
Merge pull request #21988 from edx/BOM-898
...
BOM fix remaining capa module issues
2019-10-14 17:33:27 +05:00
Ayub khan
8717510d35
BOM-805
...
python3 compatibility: Before comparison with unicode decode text if its type is bytes.
2019-10-14 15:15:28 +05:00
Ayub khan
e9c4c22e6a
BOM fixed remaining capa module issues
...
BOM-898 fix test_responsetypes.py issues
Updated safe_exec to use random2 library instead of random.
As python3 random generates different results as compared to
python2, which causes a lot of test failures and if we use
python3 random and fix tests it will cause state invalidation
of capa problems, So random2 was uses to make the behaviour same
in python3.
BOM-899 name xrange is not defined
xrange is used in safe_exec and there might be old courses where
this is being used in capa problems. All those tests fail in python3
as this was renamed to range. Used six.moves.xrange so that code
works for python3 and if there is any old code using xrange it
works too.
2019-10-14 13:29:12 +05:00
Awais Qureshi
a231876493
BOM-799
...
\\n\\n was coming inside the html. Clean it.
2019-10-09 11:45:14 +05:00
Ayub
7537283048
Merge pull request #21935 from edx/BOM-capa-random-python3-combatibility
...
BOM Project Capa Module Python3 Compatibility
2019-10-08 11:11:02 +05:00
Jeremy Bowman
71e9c85dca
Fix capa problem i18n BOM-775 ( #21832 )
2019-10-07 11:19:49 -04:00
Ayub khan
bb242c4b22
BOM Project Capa Module Python3 Compatibility
...
Python3 RNG produces different results as compared to python2
In capa problems we save seed value and generate random state
using the seed. Python3 random generates a different state as
compared to python2. Thats why using random2 library to make
state genration consistent in both python versions.
2019-10-07 16:39:47 +05:00
Ayub khan
277afeb85e
BOM-788
...
python3 compatibility: etree returns a bytes type string so in py3 we need to decode it
to compare with a unicode string
2019-10-03 15:26:36 +05:00
Ayub khan
b5dc95a30d
BOM-609
...
python3 compatibility
2019-10-01 11:33:37 +05:00
Ayub khan
a21604afdb
BOM-613
...
Made all tests py3 compatible.
2019-09-30 12:07:49 +05:00
Ayub
12140e5b78
Merge pull request #21784 from edx/BOM-608
...
BOM-608
2019-09-30 10:34:58 +05:00
Feanil Patel
07df64eb8c
Fix the rest of these.
2019-09-27 14:36:40 -04:00
Awais Jibran
007dfa5c55
Merge pull request #21750 from edx/aj/prevent-unicode-error
...
Prevent unicode error
2019-09-27 13:25:10 +05:00
Ayub
290caa4c8e
Merge pull request #21788 from edx/BOM-612
...
BOM-612
2019-09-27 09:44:44 +05:00
Jeremy Bowman
1e3d6f6db3
Fix parsing of Unicode capa XML BOM-611 ( #21803 )
2019-09-26 16:34:35 -04:00
Manjinder Singh
61015ad840
Merge pull request #21779 from edx/msingh/python3_test_shuffle_custom_names
...
BOM-614: AssertionError: Lists differ Fix.
2019-09-26 13:13:53 -04:00
jinder1s
7a2aaa09c1
random.shuffle compatibility fix between python 2.7 and 3.5
2019-09-26 08:47:18 -04:00
Ayub khan
476da01f36
BOM-612
...
python3 compatibility
2019-09-26 15:22:22 +05:00
Aarif
37b08c5784
Merge pull request #21745 from edx/BOM-610
...
BOM-610
2019-09-26 12:35:24 +05:00
Ayub khan
1178384a52
BOM-608
...
python3 compatibility
2019-09-26 12:28:23 +05:00
Ayub khan
5c47a3b425
BOM Project
...
Updated __unicode__ to __str__
2019-09-25 18:31:54 +05:00