Enabling Entrance Exams in Ulmo (Tutor)

This was going to be a question about how to get entrance exams working in a new Ulmo installation via Tutor. But, as is expected, I solved it while writing out the steps here. Still posting this in case others are trying to do the same thing. These steps worked for me.

  1. I created a plugin in ~/.local/share/tutor-plugins/entrance_exams.py

Content:

from tutor import hooks

hooks.Filters.ENV_PATCHES.add_item(
(
“openedx-lms-common-settings”,
“FEATURES[‘ENTRANCE_EXAMS’] = True”
)
)

hooks.Filters.ENV_PATCHES.add_item(
(
“openedx-cms-common-settings”,
“FEATURES[‘ENTRANCE_EXAMS’] = True”
)
)
  1. Enabled the block
tutor plugins enable entrance_exams
  1. COnfirmed it is enabled

  1. Ran commands to save and restart tutor
tutor config save
tutor local restart

worked

1 Like

You could also use openedx-common-settings in your Tutor plugin to enable this. It’s handy for feature flags that apply to both LMS and CMS, e.g.:

hooks.Filters.ENV_PATCHES.add_item(
    ("openedx-common-settings", "FEATURES['ENTRANCE_EXAMS'] = True"),
)

This avoids patching LMS/CMS separately.