~loges/aita

e3d734c6f8f4287a1afbbf18977f6e34178604da — Logan Connolly 11 months ago 5791091
test(nlp): fix broken test
1 files changed, 1 insertions(+), 2 deletions(-)

M nlp/tests/test_http.py
M nlp/tests/test_http.py => nlp/tests/test_http.py +1 -2
@@ 1,6 1,5 @@
from types import SimpleNamespace


from nlp import http




@@ 11,7 10,7 @@ def test_get_number_of_pages(monkeypatch):
        http.requests,
        "get",
        lambda _: SimpleNamespace(
            status_code=200, json=lambda: {"posts": http.PAGE_LIMIT * expected_pages}
            status_code=200, json=lambda: {"total": http.PAGE_LIMIT * expected_pages}
        ),
    )
    n_pages = http.get_number_of_pages(api_url="http://madeupurl:8000/api/v1")