Files
edx-platform/common/test/data/scoreable
Carlos Muniz 37bf73ca50 refactor: Replace videosequence & problemset (#29905)
`videosequence` and `problemset` have been replaced with `sequential`.

`problemset` and `videosequence` are old-but-not-entirely-unused aliases to the `sequential` block type (in Studio-speak, "Subsection").
Since [these block types have been removed from the 6 courses that used them](https://openedx.atlassian.net/browse/DEPR-151?focusedCommentId=588197), this ticket removes the support for the `problemset` and `videosequence` block-types.

For more information, see ticket: [DEPR-151](https://openedx.atlassian.net/browse/DEPR-151)
2022-02-16 10:21:31 -05:00
..

This course fixture provides a representative sample of scoreable block types.

## Contents of the Course

It contains several scoreable blocks in one sequence:

- CAPA
- ORA
- SGA (Staff Graded Assignment)
- LTI
- LTI Consumer
- Randomized Content Block (containing Library Content with CAPA problems)
- Drag and Drop (v2)

## Adding Blocks

To expand coverage to other block types, you can either edit the course xml
directly, or do the following:

1. Zip up the scoreable directory into a tarball:

    $ tar cvzf course.tar.gz common/test/data/scoreable'

2. Import the tarball into studio.
3. Add the new blocks.
4. Export the modified course.
5. Unzip to a temporary directory:

    $ cd /tmp
    $ tar xvzf ~/Downloads/course.*.tar.gz
    $ somewhere, and

6. Copy the data back into the test directory:

    $ rsync -avz --delete-after /tmp/course/ /path/to/edx-platform/common/test/data/scoreable

## Use in Tests

As of this writing, this course is used in
`lms/djangoapps/grades/tests/test_new.py`  If you modify the course, you may
need to adjust the values for `SCORED_BLOCK_COUNT` and `ACTUAL_TOTAL_POSSIBLE`
in `TestMultipleProblemBlockTypes` to reflect the real number of scoreable
blocks.