nilmdb/tests
Jim Paris 27f8dcf06d Extract works now and we're back to 100% test coverage! It's slow,
though; need to figure out where the slowdown lies.

Add stream existence check to server's /intervals and /extract paths,
add tests for it.

Make start and end arguments optional for /extract, like /intervals

Move --quiet command line option to just the insert subcommand.
It's the only one that uses it right now, and otherwise it doesn't
show up in after a "nilmtool.py intervals --help".  Might revisit this
later if more commands start supporting --quiet.

Change cmdline/extract's write into a print, to keep the trailing
newline.

Fix lingering uses of Interval in nilmdb and change to DBInterval
instead.

Fix nilmdb interval bisection:
  - handle common case optimization correctly
  - db_endpos is always one after the last row, so use hi=db_endpos-1

Finish nlimdb stream_extract

Add a bunch of cmdline tests for extract, particularly testing border
cases around start/end.  Compares output to a set of files stored in
the tests/data dir.

Some more tests in test_client to get better coverage.



git-svn-id: https://bucket.mit.edu/svn/nilm/nilmdb@10893 ddd99763-3ecb-0310-9145-efcb8ce7c51f
2012-05-30 18:24:36 +00:00
..
data Extract works now and we're back to 100% test coverage! It's slow, 2012-05-30 18:24:36 +00:00
aplotter.py Various work on improving intervals... 2012-04-11 22:05:27 +00:00
test_client.py Extract works now and we're back to 100% test coverage! It's slow, 2012-05-30 18:24:36 +00:00
test_cmdline.py Extract works now and we're back to 100% test coverage! It's slow, 2012-05-30 18:24:36 +00:00
test_helpers.py A lot more command line testing. 2012-04-04 22:34:01 +00:00
test_interval.py Add DBInterval and associated tests. Clean up other interval tests as 2012-05-25 21:45:05 +00:00
test_iteratorizer.py Add "iteratorizor", which transforms a function that uses callbacks 2012-05-23 01:00:12 +00:00
test_layout.py Formatters done, not necessarily fast enough though 2012-05-25 19:02:58 +00:00
test_nilmdb.py Use simplejson instead of json for performance 2012-05-16 22:19:00 +00:00
test_printf.py Rename some nilmdb methods to be private 2012-03-29 21:43:05 +00:00
test_serializer.py Rename some nilmdb methods to be private 2012-03-29 21:43:05 +00:00
test_timestamper.py Can now insert data using command line tool. Time to benchmark etc. 2012-04-09 21:31:39 +00:00