Instead, we use XModule field default values when creating an empty XModule. Driven by this use case, we also allow for XModules to be created in memory without being persisted to the database at all. This necessitates a change to the Modulestore api, replacing clone_item with create_draft and save_xmodule.
18 lines
461 B
Python
18 lines
461 B
Python
# disable missing docstring
|
|
#pylint: disable=C0111
|
|
|
|
from lettuce import world, step
|
|
|
|
|
|
@step('I have created a Blank HTML Page$')
|
|
def i_created_blank_html_page(step):
|
|
world.create_component_instance(
|
|
step, '.large-html-icon', 'html',
|
|
'.xmodule_HtmlModule'
|
|
)
|
|
|
|
|
|
@step('I see only the HTML display name setting$')
|
|
def i_see_only_the_html_display_name(step):
|
|
world.verify_all_setting_entries([['Display Name', "Blank HTML Page", False]])
|