Kyle McCormick
25df9ca420
refactor: make safe_lxml an ordinary folder in openedx/core/lib ( #25689 )
2022-05-24 15:35:23 +05:00
Soban Javed
b4ac8d284a
test: save pytest warning reports to GHA artifacts
...
- add pytest_hooks import back in common/lib/conftest.py. This import was removed during refactoring work
2021-12-15 17:06:40 +05:00
Kyle McCormick
9aefd6f986
style: django-not-configured is not a sensible lint-amnesty value ( #26862 )
...
django-not-configured is an error raised by pylint (with
the pylint-django plugin) when it's not correctly configured.
We should not be applying lint amnesty for such a violation.
2021-03-05 08:11:58 -05:00
Jawayria
4fc7b2f640
BOM-2351: Removed unused imports from common/lib/{capa, safe_lxml, symmath, conftest.py}
2021-02-15 13:21:19 +05:00
Jawayria
12065a30e0
pylint-amnesty on common/lib
2021-02-02 20:12:07 +05:00
Manjinder Singh
6c69b6d435
Adding code to output pytest warnings. ( #22570 )
...
* Added pytest-json-report plugin
- modifying app-opts in setup.cfg
- adding hook to all conftest.py files in repo
- setting report to be saved to test_root/log/warnings.json
- Writing custom logic to save json report to avoid overwrite if pytest called twice
This was created to allow us to easily parse through test warnings in jenkins
2020-01-02 10:01:52 -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
Ayub khan
0069d7db33
INCR-419 python3 compatibility
2019-07-16 16:11:02 +05:00
Calen Pennington
16f05ecce4
fixup! Load all webpack chunks into fragments as correctly-typed resources
2018-09-07 11:02:52 -04:00
Calen Pennington
15b762aaaa
fixup! Load all webpack chunks into fragments as correctly-typed resources
2018-09-07 10:40:09 -04:00
Calen Pennington
07a15c681f
Reapply the XBlock RequireJS -> Webpack changes
...
This reverts commit 105db2cf59 , reversing
changes made to 447457594f .
2018-06-27 22:27:07 -04:00
Eric Fischer
e72549cdbe
Revert "Merge pull request #18340 from cpennington/fix-studio-xblock-rendering"
...
This reverts commit 9a70ca78a5 , reversing
changes made to efd5b9abbd .
Hopefully fixes EDUCATOR-3053
2018-06-15 13:18:27 -04:00
Calen Pennington
b735a127b9
Fix assorted linting errors
2018-06-13 10:00:13 -04:00
Calen Pennington
be3c7e05c5
Reapply "Switch container factory to webpack"
...
This reverts commit 18d93b00ba .
2018-06-07 15:52:05 -04:00
Calen Pennington
18d93b00ba
Revert "Switch container factory to webpack"
2018-06-07 13:46:47 -04:00
Calen Pennington
0abe75a7c6
Re-apply the changes to convert XBlocks to Webpack
...
Reapplies edx/edx-platform#17509
This reverts commit 0f7e2373d0 .
2018-06-06 12:52:12 -04:00
Calen Pennington
0f7e2373d0
Revert "Switch container factory to webpack"
2018-05-29 16:01:38 -04:00
Calen Pennington
d08e199f79
Load XBlocks with webpack rather than RequireJS
2018-05-29 12:19:05 -04:00
Ned Batchelder
3d49d80b58
Fix safe_lxml. SEC-338
...
The imports were sorted in May, which broke the monkeypatching in
safe_lxml. I added two tests that the XML parsers are properly patched,
but they didn't pass until I added the monkeypatching to the start of
the test runs. Once that was done, some tests failed because they
relied on specific details of how empty elements are represented. Those
tests are now fixed.
2017-12-12 16:13:47 -05:00
Jeremy Bowman
d6dc209569
Fixes for common/lib tests in Django 1.9+
2017-11-15 11:00:39 -05:00
Jeremy Bowman
ca97e946a6
Switch to pytest for unit tests
2017-09-22 16:07:53 -04:00