ECOM-7196 Updating model to only include the non-deprecated fields. This work is a follow on to ECOM-7195 and SHOULD NOT be merged until that PR is merged.
15 lines
536 B
Python
15 lines
536 B
Python
"""
|
|
Tools to create programs-related data for use in bok choy tests.
|
|
"""
|
|
from common.test.acceptance.fixtures.config import ConfigModelFixture
|
|
|
|
|
|
class ProgramsConfigMixin(object):
|
|
"""Mixin providing a method used to configure the programs feature."""
|
|
def set_programs_api_configuration(self, is_enabled=False):
|
|
"""Dynamically adjusts the Programs config model during tests."""
|
|
ConfigModelFixture('/config/programs', {
|
|
'enabled': is_enabled,
|
|
'marketing_path': '/foo',
|
|
}).install()
|