Add test
This commit is contained in:
parent
4bae0339c2
commit
8115dd2d1b
@ -958,6 +958,15 @@ def test_list_users():
|
|||||||
result["Users"].should.have.length_of(1)
|
result["Users"].should.have.length_of(1)
|
||||||
result["Users"][0]["Username"].should.equal(username)
|
result["Users"][0]["Username"].should.equal(username)
|
||||||
|
|
||||||
|
username_bis = str(uuid.uuid4())
|
||||||
|
conn.admin_create_user(
|
||||||
|
UserPoolId=user_pool_id, Username=username_bis,
|
||||||
|
UserAttributes=[{'Name': 'phone_number', 'Value': '+33666666666'}]
|
||||||
|
)
|
||||||
|
result = conn.list_users(UserPoolId=user_pool_id, Filter='phone_number="+33666666666')
|
||||||
|
result["Users"].should.have.length_of(1)
|
||||||
|
result["Users"][0]["Username"].should.equal(username_bis)
|
||||||
|
|
||||||
|
|
||||||
@mock_cognitoidp
|
@mock_cognitoidp
|
||||||
def test_list_users_returns_limit_items():
|
def test_list_users_returns_limit_items():
|
||||||
|
Loading…
Reference in New Issue
Block a user