Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 1.5 KB

README.md

File metadata and controls

51 lines (43 loc) · 1.5 KB

Xblock screenshot api for edx-platform

Enable standalone xblock rendering

TO enable xblock rendering on edX platform you need to add below flag inside features list in lms.env.json

  "ENABLE_RENDER_XBLOCK_API":true 
Installation
Running the Development Server
 python take_screenshot.py
Running the Development on heroku

Note you need 2 buildpacks i.e Nodejs and python

https://github.com/heroku/heroku-buildpack-python.git
https://github.com/heroku/heroku-buildpack-nodejs.git
Testing

You can run tests by following command

python -m unittest  test_take_screenshot

You can test coverage by following command

coverage run --source take_screenshot.py test_take_screenshot.py
coverage report -m take_screenshot.py