shuup.testing.modules.sample_data package
Submodules
shuup.testing.modules.sample_data.data module
shuup.testing.modules.sample_data.factories module
- shuup.testing.modules.sample_data.factories.create_sample_category(name, description, business_segment, image_file, shop)[source]
shuup.testing.modules.sample_data.forms module
- class shuup.testing.modules.sample_data.forms.SampleObjectsWizardForm(**kwargs)[source]
Bases:
Form
- BUSINESS_SEGMENT_CHOICES = [('default', 'Default')]
- base_fields = {'business_segment': <django.forms.fields.ChoiceField object>, 'categories': <django.forms.fields.BooleanField object>, 'products': <django.forms.fields.BooleanField object>}
- declared_fields = {'business_segment': <django.forms.fields.ChoiceField object>, 'categories': <django.forms.fields.BooleanField object>, 'products': <django.forms.fields.BooleanField object>}
- property media
Return all media required to render the widgets on this form.
shuup.testing.modules.sample_data.manager module
- shuup.testing.modules.sample_data.manager.get_installed_business_segment(shop)[source]
Returns the installed business segment
- shuup.testing.modules.sample_data.manager.get_installed_products(shop)[source]
Returns the installed products samples list
- shuup.testing.modules.sample_data.manager.get_installed_categories(shop)[source]
Returns the installed categories samples list
- shuup.testing.modules.sample_data.manager.get_installed_carousel(shop)[source]
Returns the installed sample carousel
- shuup.testing.modules.sample_data.manager.clear_installed_samples(shop)[source]
Clears all the samples values from the configuration
- shuup.testing.modules.sample_data.manager.save_business_segment(shop, business_segment)[source]
Save the business segment identifier
- shuup.testing.modules.sample_data.manager.save_products(shop, products_pk)[source]
Save a list of PK as a list of sample products for a shop
- shuup.testing.modules.sample_data.manager.save_categories(shop, categories_pk)[source]
Save a list of PK as a list of sample categories for a shop
shuup.testing.modules.sample_data.views module
- class shuup.testing.modules.sample_data.views.ConsolidateSampleObjectsView(**kwargs)[source]
Bases:
FormView
This view will consolidate all the samples selected by user. All samples which are not in the form will be deleted.
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- form_class
alias of
ConsolidateObjectsForm
- template_name = 'shuup/admin/sample_data/consolidate_samples.jinja'
Module contents
- class shuup.testing.modules.sample_data.SampleDataAdminModule[source]
Bases:
AdminModule
- Return type: