зеркало из https://github.com/mozilla/bugbug.git
Remove test ensuring a batch larger than 1000 bugs would fail
Fixes a regression from 6815875c46
This commit is contained in:
Родитель
2868fe150e
Коммит
8c4fc2cde3
|
@ -131,21 +131,6 @@ def test_empty_batch(client):
|
|||
assert rv.json == {"errors": {"bugs": ["min length is 1"]}}
|
||||
|
||||
|
||||
def test_too_big_batch(client):
|
||||
"""Start with a blank database."""
|
||||
|
||||
bugs = list(range(1001))
|
||||
|
||||
rv = client.post(
|
||||
"/component/predict/batch",
|
||||
data=json.dumps({"bugs": bugs}),
|
||||
headers={API_TOKEN: "test"},
|
||||
)
|
||||
|
||||
assert rv.status_code == 400
|
||||
assert rv.json == {"errors": {"bugs": ["max length is 1000"]}}
|
||||
|
||||
|
||||
def test_non_int_batch(client):
|
||||
"""Start with a blank database."""
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче