shuup.testing.themes package¶
Submodules¶
shuup.testing.themes.plugins module¶
-
class
shuup.testing.themes.plugins.
HighlightTestPlugin
(config)[source]¶ Bases:
shuup.xtheme.TemplatedPlugin
Instantiate a Plugin with the given
config
dictionary.Parameters: config (dict) – Dictionary of freeform configuration data -
identifier
= 'shuup_test_theme.product_highlight'¶
-
name
= 'Shuup Test Theme Product Highlights'¶
-
template_name
= 'shuup_testing/highlight_plugin.jinja'¶
-
fields
= [('title', <django.forms.fields.CharField object>), ('count', <django.forms.fields.IntegerField object>)]¶
-
Module contents¶
-
class
shuup.testing.themes.
ShuupTestingTheme
(theme_settings=None, shop=None)[source]¶ Bases:
shuup.xtheme.Theme
Initialize this theme, with an optional
ThemeSettings
orShop
object. Only one should be passed.Parameters: - theme_settings (ThemeSettings|None) – A theme settings object for this theme.
- shop (Shop|None) – The shop for this theme.
-
identifier
= 'shuup_testing'¶
-
name
= 'Shuup Testing Theme'¶
-
template_dir
= 'shuup_testing'¶
-
plugins
= ['shuup.testing.themes.plugins.HighlightTestPlugin']¶
-
class
shuup.testing.themes.
ShuupTestingThemeWithCustomBase
(theme_settings=None, shop=None)[source]¶ Bases:
shuup.testing.themes.ShuupTestingTheme
Initialize this theme, with an optional
ThemeSettings
orShop
object. Only one should be passed.Parameters: - theme_settings (ThemeSettings|None) – A theme settings object for this theme.
- shop (Shop|None) – The shop for this theme.
-
identifier
= 'shuup_testing_with_custom_base_template'¶
-
name
= 'Shuup Testing Theme With Custom Base Template'¶
-
default_template_dir
= 'default_templates'¶