Projet

Général

Profil

0006-toulouse-maelis-provide-sectorization-on-RL1-72352.patch

Nicolas Roche, 20 décembre 2022 12:29

Télécharger (5,38 ko)

Voir les différences:

Subject: [PATCH 6/7] toulouse-maelis: provide sectorization on RL1 (#72352)

 functests/toulouse_maelis/conftest.py                  | 7 ++++++-
 functests/toulouse_maelis/data/test_create_family.json | 7 ++++---
 functests/toulouse_maelis/data/test_update_family.json | 7 ++++---
 functests/toulouse_maelis/data/test_update_rl1.json    | 7 ++++---
 functests/toulouse_maelis/test_family.py               | 2 +-
 5 files changed, 19 insertions(+), 11 deletions(-)
functests/toulouse_maelis/conftest.py
17 17
    'situation': 'MARI',
18 18
    'rl1': {
19 19
        'civility': 'MME',
20 20
        'firstname': 'Marge',
21 21
        'lastname': 'Simpson',
22 22
        'maidenName': 'Bouvier',
23 23
        'quality': 'MERE',
24 24
        'birth': {'dateBirth': '1950-10-01'},
25
        'adresse': {'street1': 'Evergreen Terrace', 'town': 'Springfield', 'zipcode': '62701'},
25
        'adresse': {
26
            'idStreet': '161',
27
            'street1': 'requeried having idStreet provided',
28
            'town': 'Springfield',
29
            'zipcode': '62701',
30
        },
26 31
    },
27 32
    'rl2': {
28 33
        'civility': 'MR',
29 34
        'firstname': 'Homer',
30 35
        'lastname': 'Simpson',
31 36
        'quality': 'PERE',
32 37
        'birth': {'dateBirth': '1956-05-12'},
33 38
        'adresse': {
functests/toulouse_maelis/data/test_create_family.json
15 15
    "civility": "MME",
16 16
    "birth": {
17 17
      "dateBirth": "1950-10-01T00:00:00+01:00",
18 18
      "place": null,
19 19
      "communeCode": null,
20 20
      "countryCode": null
21 21
    },
22 22
    "adresse": {
23
      "idStreet": null,
23
      "idStreet": "161",
24 24
      "num": 0,
25 25
      "numComp": null,
26
      "street1": "Evergreen Terrace",
26
      "street1": "IMP DES ANGES",
27 27
      "street2": null,
28 28
      "town": "Springfield",
29
      "zipcode": "62701"
29
      "zipcode": "62701",
30
      "idStreet_text": "IMP DES ANGES"
30 31
    },
31 32
    "contact": {
32 33
      "phone": null,
33 34
      "mobile": null,
34 35
      "mail": null,
35 36
      "isContactMail": false,
36 37
      "isContactSms": false,
37 38
      "isInvoicePdf": false
functests/toulouse_maelis/data/test_update_family.json
15 15
    "civility": "MME",
16 16
    "birth": {
17 17
      "dateBirth": "1950-10-01T00:00:00+01:00",
18 18
      "place": null,
19 19
      "communeCode": null,
20 20
      "countryCode": null
21 21
    },
22 22
    "adresse": {
23
      "idStreet": null,
23
      "idStreet": "161",
24 24
      "num": 0,
25 25
      "numComp": null,
26
      "street1": "Evergreen Terrace",
26
      "street1": "IMP DES ANGES",
27 27
      "street2": null,
28 28
      "town": "Springfield",
29
      "zipcode": "62701"
29
      "zipcode": "62701",
30
      "idStreet_text": "IMP DES ANGES"
30 31
    },
31 32
    "contact": {
32 33
      "phone": null,
33 34
      "mobile": null,
34 35
      "mail": null,
35 36
      "isContactMail": false,
36 37
      "isContactSms": false,
37 38
      "isInvoicePdf": false
functests/toulouse_maelis/data/test_update_rl1.json
7 7
  "civility": "MME",
8 8
  "birth": {
9 9
    "dateBirth": "1950-10-01T00:00:00+01:00",
10 10
    "place": null,
11 11
    "communeCode": null,
12 12
    "countryCode": null
13 13
  },
14 14
  "adresse": {
15
    "idStreet": null,
15
    "idStreet": "161",
16 16
    "num": 0,
17 17
    "numComp": null,
18
    "street1": "Evergreen Terrace",
18
    "street1": "IMP DES ANGES",
19 19
    "street2": null,
20 20
    "town": "Springfield",
21
    "zipcode": "62701"
21
    "zipcode": "62701",
22
    "idStreet_text": "IMP DES ANGES"
22 23
  },
23 24
  "contact": {
24 25
    "phone": null,
25 26
    "mobile": null,
26 27
    "mail": null,
27 28
    "isContactMail": false,
28 29
    "isContactSms": false,
29 30
    "isInvoicePdf": false
functests/toulouse_maelis/test_family.py
10 10
    'situation': 'AUTR',
11 11
    'rl1': {
12 12
        'civility': 'MR',  # no effect
13 13
        'firstname': 'Marge',  # must be
14 14
        'lastname': 'Simpson',  # must be
15 15
        'maidenName': 'reset',  # no effect
16 16
        'quality': '25',
17 17
        'birth': {'dateBirth': '1950-10-01'},  # must be
18
        'adresse': {'street1': 'reset', 'town': 'reset', 'zipcode': 'reset'},
18
        'adresse': {'idStreet': None, 'street1': 'reset', 'town': 'reset', 'zipcode': 'reset'},
19 19
    },
20 20
    'rl2': {
21 21
        'civility': 'MME',  # no effect
22 22
        'firstname': 'Homer',  # must be
23 23
        'lastname': 'Simpson',  # must be
24 24
        'quality': '25',
25 25
        'birth': {'dateBirth': '1956-05-12'},  # must be
26 26
        'adresse': {
27
-