def base_create_dep_objs(cls):
     """
     Create all objects that ProposalParticipant need.
     """
     prop3 = Proposals()
     TestProposals.base_create_dep_objs()
     prop3.from_hash(SAMPLE_PROPOSAL_HASH)
     prop3.save(force_insert=True)
     user = Users()
     TestUsers.base_create_dep_objs()
     user.from_hash(SAMPLE_USER_HASH)
     user.save(force_insert=True)
 def base_create_dep_objs(cls):
     """
     Create all objects that InstrumentCustodian need.
     """
     inst = Instruments()
     TestInstruments.base_create_dep_objs()
     inst.from_hash(SAMPLE_INSTRUMENT_HASH)
     inst.save(force_insert=True)
     custodian = Users()
     TestUsers.base_create_dep_objs()
     custodian.from_hash(SAMPLE_USER_HASH)
     custodian.save(force_insert=True)
Ejemplo n.º 3
0
 def base_create_dep_objs(cls):
     """
     Create all objects that Files depend on.
     """
     user = Users()
     TestUsers.base_create_dep_objs()
     user.from_hash(SAMPLE_USER_HASH)
     user.save(force_insert=True)
     inst = Institutions()
     TestInstitutions.base_create_dep_objs()
     inst.from_hash(SAMPLE_INSTITUTION_HASH)
     inst.save(force_insert=True)
 def base_create_dep_objs(cls):
     """
     Create all objects that InstitutionPerson need.
     """
     inst = Institutions()
     TestInstitutions.base_create_dep_objs()
     inst.from_hash(SAMPLE_INSTITUTION_HASH)
     inst.save(force_insert=True)
     user1 = Users()
     TestUsers.base_create_dep_objs()
     user1.from_hash(SAMPLE_USER_HASH)
     user1.save(force_insert=True)
Ejemplo n.º 5
0
 def base_create_dep_objs(cls):
     """
     Create all objects that UserGroup need.
     """
     member = Users()
     TestUsers.base_create_dep_objs()
     member.from_hash(SAMPLE_USER_HASH)
     member.save(force_insert=True)
     groups = Groups()
     TestGroups.base_create_dep_objs()
     groups.from_hash(SAMPLE_GROUP_HASH)
     groups.save(force_insert=True)
Ejemplo n.º 6
0
 def base_create_dep_objs(cls):
     """
     Build the object and make dependent user object.
     """
     submitter = Users()
     TestUsers.base_create_dep_objs()
     submitter.from_hash(SAMPLE_SUBMITTER_HASH)
     submitter.save(force_insert=True)
     prop = Proposals()
     TestProposals.base_create_dep_objs()
     prop.from_hash(SAMPLE_PROPOSAL_HASH)
     prop.save(force_insert=True)
     inst = Instruments()
     TestInstruments.base_create_dep_objs()
     inst.from_hash(SAMPLE_INSTRUMENT_HASH)
     inst.save(force_insert=True)
 def dependent_cls(cls):
     """
     Return dependent classes for the ProposalParticipant object
     """
     ret = [ProposalParticipant]
     ret += TestProposals.dependent_cls()
     ret += TestUsers.dependent_cls()
     return ret
 def dependent_cls(cls):
     """
     Return dependent classes for the InstrumentCustodian object
     """
     ret = [InstrumentCustodian]
     ret += TestUsers.dependent_cls()
     ret += TestInstruments.dependent_cls()
     return ret
Ejemplo n.º 9
0
 def dependent_cls(cls):
     """
     Return dependent classes for the Contributors object
     """
     ret = [Contributors]
     ret += TestInstitutions.dependent_cls()
     ret += TestUsers.dependent_cls()
     return ret
 def dependent_cls(cls):
     """
     Return dependent classes for the InstitutionPerson object
     """
     ret = [InstitutionPerson]
     ret += TestUsers.dependent_cls()
     ret += TestInstitutions.dependent_cls()
     return ret
Ejemplo n.º 11
0
 def dependent_cls(cls):
     """
     Return dependent classes for the UserGroup object
     """
     ret = [UserGroup]
     ret += TestUsers.dependent_cls()
     ret += TestGroups.dependent_cls()
     return ret
Ejemplo n.º 12
0
 def dependent_cls(cls):
     """
     Return dependent classes for the Transactions object
     """
     ret = [Transactions]
     ret += TestUsers.dependent_cls()
     ret += TestInstruments.dependent_cls()
     ret += TestProposals.dependent_cls()
     return ret