fix candidat
[auf_rh_dae.git] / project / recrutement / test / common.py
CommitLineData
07039f95
OL
1# -*- coding: utf-8 -*-
2
3from auf.django.references import models as ref
8fb8868b 4from auf.django.emploi.models import OffreEmploi, Candidat
07039f95
OL
5from project.rh.test.common import RhTest
6
7class RecrutementTest(RhTest):
8
9 def setUp(self):
10 """
11 OFFRE_EMPLOIS
12 =============
13 self.offre_cnf_ngaoundere
8fb8868b
OL
14
15 CANDIDATS
16 =========
17 self.canditat_cnf_ngaoundere
07039f95
OL
18 """
19 super(RecrutementTest, self).setUp()
20
21 self.offre_cnf_ngaoundere = OffreEmploi(nom=u"Offre CNF ngaoundere",
22 region=self.REGION_ACGL,
23 lieu_affectation=self.IMPLANTATION_ACGL_CNF_NGAOUNDERE,
24 date_limite=self.tomorrow,
25 debut_affectation=self.tomorrow,
26 bureau=ref.Bureau.objects.get(region=self.IMPLANTATION_ACGL_CNF_NGAOUNDERE.region),
27 )
28 self.offre_cnf_ngaoundere.save()
29
8fb8868b
OL
30 self.candidat_cnf_ngaoundere = Candidat(
31 prenom="olivier",
32 nom="larchevêque",
33 genre='M',
34 nationalite=ref.Pays.objects.get(code='FR'),
35 pays=ref.Pays.objects.get(code='CA'),
36 offre_emploi=self.offre_cnf_ngaoundere,
37 nombre_dependant=3,
38 )
39 self.candidat_cnf_ngaoundere.save()
40