Improve tests for elemental publishing operations.

Description

Enforce via increased/improved testing the relationship between draft items, published items, elemental publishing operations, and the OLX course export format.

Details:

  • Test every operation in ModuleStoreDraftAndPublished() in draft_and_published.py.

  • Use a standard "binary tree" course for each test.

  • Two chapters with each having two sequentials, etc.

  • Determine if there's any orthogonal commonality across tests that can be factored out into multiplicative tests. (See xblock/test/test_fields_api.py for an example.)

  • All tests should end in OLX check.

  • When testing OLX check, prefer the following assert format:

assertBlockXML('vertical', <url_name>, <another tag>, """
<unit>The unit should have this info...</unit>
"""
)

  • That way, both reading XML files in a broken-up course export and reading parsed XML for the values can be more easily supported.

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

No variance - but this story ended up pulling in Cale for a few hours. So it felt just over 8 - but not 13.

Release Notes

None

User Impact Summary

None

Assignee

Julia Eskew

Reporter

Julia Eskew

Labels

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

8

Category of Work

None

Platform Map Area (Levels 1 &amp; 2)

None

Platform Map Area (Levels 3 &amp; 4)

None

Story Points

8

Sprint

None

Fix versions

Priority

Unset
Configure