示例#1
0
 def test_create_trust(self):
     make_story(
         user=get_user_staff(),
         area=get_area_hatherleigh(),
         title='10 Pub Barrel Pull Success',
         description='10 Pub Pull on Saturday',
     )
示例#2
0
 def test_create_anon(self):
     make_story(
         name='Pat',
         email='code@pkimber.net',
         area=get_area_hatherleigh(),
         title='Alpha Male',
         description='completed their 300 mile paddle',
     )
示例#3
0
def default_scenario_story():
    create_default_moderate_state()
    make_area('Hatherleigh')
    make_area('Exbourne')
    make_story(
        user=get_user_staff(),
        area=get_area_hatherleigh(),
        title='MGs descend on Hatherleigh',
        description=(
            "The Taw and Torridge MG owners club came to Hatherleigh, on "
            "Tuesday, to join the crowds at Hatherleigh Market. They came "
            "to visit Martin at the Hatherleigh Fish Bar. Martin the owner "
            "of the bar also has two MGs."
        )
    )
    make_story(
        user=get_user_web(),
        area=get_area_hatherleigh(),
        title='Market Offices burnt down',
        description=(
            "The market offices burnt down last night. I am sure theories "
            "will abound around the town, but we will have to wait until the "
            "Police have done their bit, before we will know. The offices "
            "and files held within seam to have been totalled destroyed. "
            "Tomorrow's Market should go ahead although the auction will "
            "NOT take place, but the stallholders hopefully will be selling "
            "their wares"
        )
    )
    make_story(
        name='Pat',
        email='code@pkimber.net',
        area=get_area_exbourne(),
        title='Craft Fair',
        description=(
            "Over 200 entries were exhibited at the Hatherleigh Craft Show, "
            "at its launch in Hatherleigh Community Centre on Sunday 4th "
            "August. Judges had the difficult task of awarding rosettes for "
            "1st, 2nd & 3rd places in each of the 24 classes, ranging from "
            "knitting to metal work."
        )
    )