Skip to content
Snippets Groups Projects
Commit 6047cbec authored by Borja Gimeno's avatar Borja Gimeno
Browse files

add new_service banned_action in test

parent 4741ef5b
No related branches found
No related tags found
1 merge request!36Add banned_actions field as array of Strings to the Partner object
Pipeline #4875 passed
......@@ -24,7 +24,7 @@ interactions:
true, "sponsorship_code": "12345", "sponsees_max": 5, "sponsees_number": 2, "addresses":
[{"street": "Carrer del Penal, 2", "zip_code": "17855", "city": "Oix", "country":
"Spain", "state": "Girona (Gerona)"}], "banned_actions": ["mobile_one_shot",
"mobile_tariff_change"]}'
"mobile_tariff_change", "new_service"]}'
headers:
Access-Control-Allow-Methods:
- GET
......
......@@ -24,7 +24,7 @@ interactions:
true, "sponsorship_code": "12345", "sponsees_max": 5, "sponsees_number": 2, "addresses":
[{"street": "Carrer del Penal, 2", "zip_code": "17855", "city": "Oix", "country":
"Spain", "state": "Girona (Gerona)"}], "banned_actions": ["mobile_one_shot",
"mobile_tariff_change"]}'
"mobile_tariff_change", "new_service"]}'
headers:
Access-Control-Allow-Methods:
- GET
......
......@@ -40,6 +40,7 @@ class PartnerTests(unittest.TestCase):
assert partner.addresses[0].street == "Carrer del Penal, 2"
assert "mobile_one_shot" in partner.banned_actions
assert "mobile_tariff_change" in partner.banned_actions
assert "new_service" in partner.banned_actions
@pytest.mark.vcr()
def test_check_sponsor_ok(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment