Source code for shuup.testing.modules.mocker.sections
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from shuup.admin.base import Section
[docs]class MockContactSection(Section):
identifier = "contact_mock_section"
name = _("mock section title")
icon = "fa-globe"
template = "shuup_testing/_contact_mock_section.jinja"
order = 9
@classmethod
@classmethod
[docs] def get_context_data(cls, contact, request=None):
context = {}
context["mock_context"] = "mock section context data"
return context