def setUpTestData(cls):
        cls.user = UserFactory()
        cls.projetos_dict = dict(projeto_1=ProjetoFactory(name='Projeto 1',
                                                          created_by=cls.user),
                                 projeto_2=ProjetoFactory(name='Projeto 2',
                                                          created_by=cls.user))

        cls.expected_projects_list = [
            dict(id=1, name='Projeto 1'),
            dict(id=2, name='Projeto 2'),
        ]
    def setUpTestData(cls):
        cls.user = UserFactory()
        cls.other_user = UserFactory()
        cls.own_project = ProjetoFactory(name='Projeto 1', created_by=cls.user)
        cls.others_project = ProjetoFactory(name='Projeto 2',
                                            created_by=cls.other_user)

        cls.own_project_new_data = dict(name='Projeto 1 alterado',
                                        created_by=cls.user)

        cls.others_project_new_data = dict(name='Projeto 2 alterado',
                                           created_by=cls.other_user)
    def setUpTestData(cls):
        cls.user = UserFactory()
        cls.projeto = ProjetoFactory(name='Projeto 1', created_by=cls.user)
        cls.naver_projetos = dict(
            naver_1=NaverProjetoFactory(
                projeto=cls.projeto,
                naver__name='José Souza',
                naver__birthdate='1991-02-01',
                naver__admission_date='2019-03-01',
                naver__job_role='Desenvolvedor BackEnd',
                naver__created_by=cls.user),
            naver_2=NaverProjetoFactory(
                projeto=cls.projeto,
                naver__name='Maria Fernanda',
                naver__birthdate='1993-01-08',
                naver__admission_date='2019-04-02',
                naver__job_role='Desenvolvedor FrontEnd',
                naver__created_by=cls.user),
            naver_3=NaverProjetoFactory(projeto=cls.projeto,
                                        naver__name='Marina Alves',
                                        naver__birthdate='1989-01-01',
                                        naver__admission_date='2018-05-07',
                                        naver__job_role='Tester',
                                        naver__created_by=cls.user),
            naver_4=NaverProjetoFactory(projeto=cls.projeto,
                                        naver__name='Magno Oliveira',
                                        naver__birthdate='1994-10-02',
                                        naver__admission_date='2020-05-01',
                                        naver__job_role='Gerente de Projetos',
                                        naver__created_by=cls.user))

        cls.expected_naver_show_response = dict(
            id=1,
            name='Projeto 1',
            navers=[
                dict(id=1,
                     name='José Souza',
                     birthdate='1991-02-01',
                     admission_date='2019-03-01',
                     job_role='Desenvolvedor BackEnd'),
                dict(id=2,
                     name='Maria Fernanda',
                     birthdate='1993-01-08',
                     admission_date='2019-04-02',
                     job_role='Desenvolvedor FrontEnd'),
                dict(id=3,
                     name='Marina Alves',
                     birthdate='1989-01-01',
                     admission_date='2018-05-07',
                     job_role='Tester'),
                dict(id=4,
                     name='Magno Oliveira',
                     birthdate='1994-10-02',
                     admission_date='2020-05-01',
                     job_role='Gerente de Projetos'),
            ])
 def setUpTestData(cls):
     cls.user = UserFactory(email='*****@*****.**')
     cls.naver = NaverFactory(name='John Doe',
                              birthdate=parse_date('1990-10-12'),
                              admission_date=parse_date('2011-08-01'),
                              job_role='Desenvolvedor',
                              created_by=cls.user)
     cls.projeto = ProjetoFactory(name='Any project', created_by=cls.user)
     cls.naver_projeto = NaverProjetoFactory(projeto=cls.projeto,
                                             naver=cls.naver)
 def setUpTestData(cls):
     cls.user = UserFactory()
     cls.other_user = UserFactory()
     cls.own_project = ProjetoFactory(created_by=cls.user)
     cls.others_project = ProjetoFactory(created_by=cls.other_user)
 def setUpTestData(cls):
     cls.user = UserFactory()
     cls.project_1 = ProjetoFactory(name='projeto 1', created_by=cls.user)
     cls.project_2 = ProjetoFactory(name='projeto 2', created_by=cls.user)