adewes / blitzdb

Blitz is a document-oriented database for Python that is backend-agnostic. It comes with a flat-file database for JSON documents and provides MongoDB-like querying capabilities.
http://blitzdb.readthedocs.org
MIT License
330 stars 37 forks source link

Add better tests for special ($) query operators #16

Open adewes opened 10 years ago

adewes commented 10 years ago

Currently there are only two tests in tests/test_querying.py that cover various special ($) query operators.

Improve Blitz by adding more specialized tests for the various operators:

$in
$exists
$all
$regex
$ne
$eq
$not
$lt
$gt
$lte
$gte
$and
$or
#...
  1. Create a new file tests/test_query_operators.py
  2. Add appropriate tests for all operators listed above, possibly using existing test data or generating new test data, where appropriate.
adewes commented 10 years ago

@cBrauge is working on this