Son NK hace 5 años
padre
commit
79ac792136
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tests/api/test_alias_options.py

+ 2 - 2
tests/api/test_alias_options.py

@@ -23,14 +23,14 @@ def test_different_scenarios(flask_client):
     # {
     # {
     #     "can_create_custom": True,
     #     "can_create_custom": True,
     #     "can_create_random": True,
     #     "can_create_random": True,
-    #     "custom": {"suffix": ["azdwbw@sl.local"], "suggestion": ""},
+    #     "custom": {"suffixes": ["azdwbw@sl.local"], "suggestion": ""},
     #     "existing": ["cat_cat_cat@sl.local"],
     #     "existing": ["cat_cat_cat@sl.local"],
     # }
     # }
     assert r.status_code == 200
     assert r.status_code == 200
     assert r.json["can_create_custom"]
     assert r.json["can_create_custom"]
     assert r.json["can_create_random"]
     assert r.json["can_create_random"]
     assert len(r.json["existing"]) == 1
     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
     assert r.json["custom"]["suggestion"] == ""  # no hostname => no suggestion
 
 
     # <<< with hostname >>>
     # <<< with hostname >>>