-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfactories.py
69 lines (55 loc) · 1.81 KB
/
factories.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import factory
class KlantContactDataFactory(factory.DictFactory):
nummer = "7948723947"
kanaal = "changed"
onderwerp = "changed"
inhoud = "changed"
indicatieContactGelukt = False
taal = "de"
vertrouwelijk = False
plaatsgevondenOp = "2020-08-24T14:15:22Z"
class BezoekAdresDataFactory(factory.DictFactory):
nummeraanduidingId = "1234567890000001"
straatnaam = "straat"
huisnummer = 10
huisnummertoevoeging = "A2"
postcode = "1008DG"
stad = "Amsterdam"
adresregel1 = "adres1"
adresregel2 = "adres2"
adresregel3 = "adres3"
land = "NL"
class CorrespondentieAdresDataFactory(factory.DictFactory):
nummeraanduidingId = "1234567890000002"
straatnaam = "straat"
huisnummer = 10
huisnummertoevoeging = "A2"
postcode = "1008DG"
stad = "Amsterdam"
adresregel1 = "adres1"
adresregel2 = "adres2"
adresregel3 = "adres3"
land = "NL"
class ContactNaamDataFactory(factory.DictFactory):
voorletters = "P"
voornaam = "Phil"
voorvoegselAchternaam = ""
achternaam = "Bozeman"
class BetrokkeneDataFactory(factory.DictFactory):
wasPartij = None
bezoekadres = factory.SubFactory(BezoekAdresDataFactory)
correspondentieadres = factory.SubFactory(CorrespondentieAdresDataFactory)
contactnaam = factory.SubFactory(ContactNaamDataFactory)
rol = "vertegenwoordiger"
organisatienaam = "Whitechapel"
initiator = True
class OnderwerpObjectIdentificatorDataFactory(factory.DictFactory):
codeObjecttype = "codeObjecttype"
codeSoortObjectId = "codeSoortObjectId"
objectId = "objectId"
codeRegister = "codeRegister"
class OnderwerpObjectDataFactory(factory.DictFactory):
wasKlantcontact = None
onderwerpobjectidentificator = factory.SubFactory(
OnderwerpObjectIdentificatorDataFactory
)