package
Version:
v0.0.180
Opens a new window with list of versions in this module.
Published: Apr 11, 2019
License: AGPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AssertQueryCount can be used to assert that a query returns the expected number of
CTX returns our background testing context
DB returns an open test database pool
RC returns a redis connection, Close() should be called on it when done
RP returns a redis pool to our test database
Reset clears out both our database and redis DB
ResetDB resets our database to our base state from our RapidPro dump
mailroom_test.dump can be regenerated by running:
% python manage.py mailroom_db
then copying the mailroom_test.dump file to your mailroom root directory
% cp mailroom_test.dump ../mailroom
ResetRP resets our redis database
Source Files
¶
Click to show internal directories.
Click to hide internal directories.