From 79ac792136e27ef3a6747af705087accb23f816f Mon Sep 17 00:00:00 2001 From: Son NK Date: Wed, 4 Dec 2019 19:46:19 +0000 Subject: [PATCH] fix test --- tests/api/test_alias_options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api/test_alias_options.py b/tests/api/test_alias_options.py index 0a083cae..13aafa6d 100644 --- a/tests/api/test_alias_options.py +++ b/tests/api/test_alias_options.py @@ -23,14 +23,14 @@ def test_different_scenarios(flask_client): # { # "can_create_custom": True, # "can_create_random": True, - # "custom": {"suffix": ["azdwbw@sl.local"], "suggestion": ""}, + # "custom": {"suffixes": ["azdwbw@sl.local"], "suggestion": ""}, # "existing": ["cat_cat_cat@sl.local"], # } assert r.status_code == 200 assert r.json["can_create_custom"] assert r.json["can_create_random"] assert len(r.json["existing"]) == 1 - assert r.json["custom"]["suffix"] + assert r.json["custom"]["suffixes"] assert r.json["custom"]["suggestion"] == "" # no hostname => no suggestion # <<< with hostname >>>