Ejemplo n.º 1
0
    def setUp(self):
        clean_db_datas()
        self.user = create_user(get_random_username(), 'yang', 'peng', 'demo')
        self.organization = create_organization()
        self.parent_organization = create_parent_organization()
        self.organization.save_parent_org(parent_org=self.parent_organization)
        staff = OfficeStaff()
        staff.user = self.user
        staff.office_lat = 0.0
        staff.office_longit = 0.0
        staff.current_practice = self.organization
        staff.save()
        staff.practices.add(self.organization)

        mgr = Office_Manager(user=staff,
                             practice=self.organization,
                             manager_role=2)
        mgr.save()

        self.provider = create_user(get_random_username(),
                                    "doc",
                                    "holiday",
                                    "demo",
                                    uklass=Provider)
        self.provider.current_practice = self.parent_organization
        self.provider.save()
        self.provider.practices.add(self.parent_organization)
Ejemplo n.º 2
0
    def setUp(self):
        clean_db_datas()

        self.parent_organization = create_parent_organization()
        self.organization = create_organization()
        self.organization.save_parent_org(parent_org=self.parent_organization)

        self.org_members = []
        self.org_members = create_multiple_organizations(10)

        self.organization_not_member = create_organization_not_member()
Ejemplo n.º 3
0
	def setUp(self):
		clean_db_datas()

		self.parent_organization = create_parent_organization()
		self.organization = create_organization()
		self.organization.save_parent_org(parent_org=self.parent_organization)

		self.org_members = []
		self.org_members = create_multiple_organizations(10)

		self.organization_not_member = create_organization_not_member()
Ejemplo n.º 4
0
	def setUp(self):
		clean_db_datas()
		self.user = create_user(get_random_username(),'yang','peng','demo')
		self.organization = create_organization()
		self.parent_organization = create_parent_organization()
		self.organization.save_parent_org(parent_org=self.parent_organization)
		staff = OfficeStaff()
		staff.user = self.user
		staff.office_lat = 0.0
		staff.office_longit = 0.0
		staff.current_practice = self.organization
		staff.save()
		staff.practices.add(self.organization)

		mgr = Office_Manager(user=staff, practice=self.organization, manager_role=2)
		mgr.save()

		self.provider = create_user(get_random_username(), "doc", "holiday", "demo", uklass=Provider)
		self.provider.current_practice = self.parent_organization
		self.provider.save()
		self.provider.practices.add(self.parent_organization)