feat(админка): выбор всех по фильтру
This commit is contained in:
@@ -86,3 +86,10 @@ def test_exhausted_filter_and_accounts_failure(env, monkeypatch):
|
||||
assert client.get("/api/admin/v2/customers?status=exhausted",
|
||||
headers=h).status_code == 503
|
||||
assert client.get("/api/admin/v2/customers", headers=h).status_code == 200
|
||||
|
||||
|
||||
def test_emails_by_filter(env):
|
||||
db, client, h, auth = env
|
||||
d = client.get("/api/admin/v2/customer-emails?q=joe", headers=h).json()
|
||||
assert d["emails"] == ["joe@x"]
|
||||
assert "ex@x" in client.get("/api/admin/v2/customer-emails", headers=h).json()["emails"]
|
||||
|
||||
Reference in New Issue
Block a user