Beispiel #1
0
def get_initialized_test_event():
    get_default_product()
    customer = create_random_person()
    order = create_random_order(customer)
    return ATestEvent(order_language=order.language,
                      order=order,
                      just_some_text=random_title())
Beispiel #2
0
def get_initialized_test_event():
    get_default_product()
    customer = create_random_person()
    order = create_random_order(customer)
    return ATestEvent(
        order_language=order.language,
        order=order,
        just_some_text=random_title()
    )
Beispiel #3
0
 def get_menu_entries(self, request):
     if not self.check_demo_optin(request):
         return
     return [
         MenuEntry(
             text=random_title(),
             icon="fa %s" % random.choice(["fa-flash", "fa-folder", "fa-eye", "fa-dollar", "fa-paw", "fa-cloud"]),
             url="https://google.com/",
             category="Test %d" % random.randint(1, 6)
         ) for x in range(30)
     ]
Beispiel #4
0
 def get_menu_entries(self, request):
     if not self.check_demo_optin(request):
         return
     return [
         MenuEntry(
             text=random_title(),
             icon="fa %s" % random.choice(["fa-flash", "fa-folder", "fa-eye", "fa-dollar", "fa-paw", "fa-cloud"]),
             url="https://google.com/",
             category="Test %d" % random.randint(1, 6)
         ) for x in range(30)
     ]
Beispiel #5
0
 def fuzz(self):
     return random_title(prefix=self.prefix, suffix=self.suffix)
Beispiel #6
0
 def fuzz(self):
     return random_title(prefix=self.prefix, suffix=self.suffix)