shuup.testing.themes package

Submodules

shuup.testing.themes.plugins module

class shuup.testing.themes.plugins.HighlightTestPlugin(config)[source]

Bases: 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>)]
get_context_data(context)[source]

Get a context dictionary from a Jinja2 context.

Parameters:

context (jinja2.runtime.Context) – Jinja2 rendering context

Returns:

Dict of vars

Return type:

dict[str, object]

Module contents

class shuup.testing.themes.ShuupTestingTheme(theme_settings=None, shop=None)[source]

Bases: Theme

Initialize this theme, with an optional ThemeSettings or Shop 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'
author = 'Shuup Team'
template_dir = 'shuup_testing'
plugins = ['shuup.testing.themes.plugins.HighlightTestPlugin']
class shuup.testing.themes.ShuupTestingThemeWithCustomBase(theme_settings=None, shop=None)[source]

Bases: ShuupTestingTheme

Initialize this theme, with an optional ThemeSettings or Shop 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'