apache / couchdb

Seamless multi-master syncing database with an intuitive HTTP/JSON API, designed for reliability
https://couchdb.apache.org/
Apache License 2.0
6.28k stars 1.03k forks source link

Add few simple search tests to mango #5339

Closed iilyak closed 1 week ago

iilyak commented 1 week ago

Overview

There are no functional changes, only additions to tests.

Testing recommendations

make mango-test MANGO_TEST_OPTS="26-test_query.TestQuery"

Related Issues or Pull Requests

Checklist

iilyak commented 1 week ago

I changed my mind. The shape of the tests in this PR is too different than other files in the test suite. Especially self.db.recreate() part.

nickva commented 1 week ago

I changed my mind. The shape of the tests in this PR is too different than other files in the test suite. Especially self.db.recreate() part.

Wonder if https://github.com/apache/couchdb/blob/main/test/elixir/test/search_test.exs would be a better place? Not a big deal I think if we had some mango tests in there as well, I think.