1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-22 06:15:02 +01:00
dspace-statistics-api/tests
Alan Orth 923ed0a434
tests/test_api.py: Add tests for /items POST handlers
This adds tests for the new /items POST handler, both with mocked
data and a live connection to a Solr statistics core. Tests that
only work when Solr is available are marked with XFAIL so that they
don't turn the whole test suite red.

In each test I try to assert as many parameters as we can know for
each response so that we cover all expectations. For example, when
we test a valid limit parameter we should test whether the response
not only has the same limit parameter, but that the number of items
has actually been limited and the number of pages has been adjusted
accordingly.

See: https://docs.pytest.org/en/stable/skipping.html
2020-10-06 16:51:53 +03:00
..
__init__.py Add initial API tests 2018-11-11 16:24:54 +02:00
dspacestatistics.sql tests/dspacestatistics.sql: Update 2020-03-02 12:36:06 +02:00
test_api.py tests/test_api.py: Add tests for /items POST handlers 2020-10-06 16:51:53 +03:00