def setUp(self): self.my_view = CreateCustomExams() self.name_min = None self.name_valid = "Alguma coisa" self.name_exists = "Invalido" self.description_max = """adjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihai ufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuah adjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihaiufdha ihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhf iahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiu hfiuahfidhfiahiudfhaiufhdiuah""" self.name_max = """adjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihai ufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuah adjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihaiufdha ihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhf iahdfiahdufhaisdhfiuahdfuihaiufdhaihfiuhfiuahfidhfiahiudfhaiufhdiuahadjhfiahdfiahdufhaisdhfiuahdfuihaiufdhaihfiu hfiuahfidhfiahiudfhaiufhdiuah""" self.description_min = "as" self.description_valid = "Examina alguma coisa" custom_exam = CustomExam() custom_exam.name = "Invalido" user = HealthProfessional() user.crm = "54321" user.save() custom_exam.health_professional_FK = user custom_exam.save()
def setUp(self): self.name_valid = 'Teste Nome' self.name_invalid = 'T' self.name_invalid_TYPE = 'a@hjasgdjasda1l' self.name_invalid_MAX = 'aasdkgasghdhjadjasvdashdjavcdbnmhasdvbdmmasbdnmhamsjdhgegdhjgsavdhabvdbnasd' self.name_invalid_MIN = 'a' self.phone_valid = '(61)1234-56789' self.phone_invalid = '456' self.phone_invalid_MIN = '456' self.phone_invalid_TYPE = 'aas1@a;$aaa' self.phone_invalid_MAX = '456134564898761' self.email_valid = '*****@*****.**' self.email_invalid = 'admin.com' self.email_invalid_TYPE = 'admin.com' self.email_invalid_MIN = 'a@a.' self.email_invalid_MAX = '*****@*****.**' self.email_invalid_BASE = '*****@*****.**' self.password_valid = '1234567' self.password_invalid = '123' self.password_invalid_MAX = '1234567891011' self.password_invalid_MIN = '123' self.password_invalid_TYPE = 'a@d13!*' self.date_of_birth_valid = '10/12/1990' self.date_of_birth_invalid = '18' self.date_of_birth_invalid_FORMAT = '18' self.date_of_birth_invalid_MIN = '10/12/2010' self.sex_valid = 'M' self.sex_invalid = 'A' self.crm_valid = '12345' self.crm_valid_existent = '54321' self.crm_invalid = '1' self.crm_invalid_MIN = '13' self.crm_invalid_MAX = '1564564564689756431367' self.crm_invalid_FORMAT = 'a4' self.crm_invalid_TYPE = 'a1@13' self.crm_state_valid = 'DF' self.crm_state_invalid = '1234a' self.crm_state_invalid_MAX = 'aaaaaaaa' self.crm_state_invalid_MIN = 'A' self.crm_state_invalid_NONE = None self.speciality_valid = 'Alergia' self.speciality_invalid_MIN = 'A' self.speciality_invalid_MAX = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' user = HealthProfessional() user.crm = "54321" user.save() user = User() user.email = "*****@*****.**" user.save()
def setUp(self): self.my_view = CustomActivePrincipleForm() self.name_valid = "Alguma coisa" self.name_exists = "Invalido" self.name_max = """aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaa+1""" custom_principle = CustomActivePrinciple() custom_principle.name = "test" user = HealthProfessional() user.crm = "54321" user.save() custom_principle.created_by = user custom_principle.save()