def add_a_new_shift(self, hours=None, date=None):
        sel = self.selenium
        if not hours:
            hours = Factory.rand_int(1,10)

        sel.click("css=tabbed_box[name=add_a_volunteer_shift] tab_title")
        sel.type("css=#id_duration", hours)
        if date:
            sel.type("css=#id_date", date)
        sel.click("css=tabbed_box[name=add_a_volunteer_shift] .add_shift_btn")
        time.sleep(2)
Exemple #2
0
 def setUp(self, *args, **kwargs):
     self.account = self.setup_for_logged_in()
     populate_rule_components_for_an_account(self.account)
     self.people = [Factory.volunteer_history(self.account) for i in range(1,Factory.rand_int(30,100))]
     self.verificationErrors = []
Exemple #3
0
 def setUp(self, *args, **kwargs):
     self.account = self.setup_for_logged_in()
     self.organizations = [Factory.organization(self.account) for i in range(1,Factory.rand_int(30,300))]
     self.verificationErrors = []
Exemple #4
0
    def test_factory_account_can_be_run_multiple_times(self):
        for i in range(0,Factory.rand_int(2,6)):
            Factory.create_demo_site("test%s" % i, quick=True)

        assert True == True # Finished successfully.