magic-wormhole/src/wormhole/server
Brian Warner 177aac2d84 test upgrader, badly
This adds a test for database upgrades, which I developed on a branch
that added a new DB schema (v3) and an upgrader to match, but then I
changed my mind about the schema and removed that part. The test will be
useful some time in the future when I change the schema in a small
enough way that I bother to write an upgrader for the change. For now,
the test is disabled.

In addition, the upgrader test is kind of lame. I'd really prefer to
assert that the upgraded schema is identical to the schema of a
brand-new (latest-version) database, but ALTER TABLE doesn't quite work
that way (comments are omitted, and the order of the columns is slightly
different).

This also adds database.dump_db() for the tests.
2016-06-22 19:05:52 -07:00
..
db-schemas SCHEMA CHANGE: add 'request_id' to nameplates table 2016-05-28 11:46:14 -07:00
__init__.py unsplit wormhole_server step 2: edit files 2016-04-20 19:15:33 -07:00
cli.py server/cli.py: remove timing instrumentation 2016-06-22 13:12:45 -07:00
cmd_server.py Change UsageError -> InternalError, use click.UsageError for human-visible errors 2016-06-22 02:14:34 -06:00
cmd_usage.py Change UsageError -> InternalError, use click.UsageError for human-visible errors 2016-06-22 02:14:34 -06:00
database.py test upgrader, badly 2016-06-22 19:05:52 -07:00
endpoint_service.py added unicode_literals import to all apropriate modules 2016-06-04 12:42:59 -07:00
rendezvous_websocket.py u"" cleanup on rendezvous_websocket.py 2016-06-04 14:09:19 -07:00
rendezvous.py u"" cleanup on rendezvous.py 2016-06-04 14:09:19 -07:00
runner.py added unicode_literals import to all apropriate modules 2016-06-04 12:42:59 -07:00
server.py unit-test for relay request, and fix Data() handling 2016-06-20 16:32:07 -07:00
transit_server.py u"" cleanup on transit_server.py 2016-06-04 14:09:19 -07:00