Testing utils extracted from matrix-synapse to be reused in plugins
Project description
matrix-synapse-testutils
Base testutils of matrix synapse
This project includes the test utils from matrix-synapse to make them reusable in other projects.
There are some very good basic unittest classes to test routes and plugins, but one is unable to import them, because
- the files are in a module called 'test'
- the imports are absolute
- the test module is included in the sdist but not after installation
Sample usage
from matrix_synapse_testutils.unittest import HomeserverTestCase
Versioning
The version of this module always fits the version of its respective synapse version.
Synapse version 1.70.0
leads to a version of matrix_synapse_testutils of
1.70.0.N
.
N is a numeric revision number for matrix_synapse_testutils
starting at 1 for every release of synapse, just like you would expect.
Examples
1.70.0.0
This means it is the first release of matrix_synapse_testutils
for synapse 1.70.0
1.70.0.1
This means it is the second release of matrix_synapse_testutils
for synapse 1.70.0
1.71.1.0
This means it is the first release of matrix_synapse_testutils
for synapse 1.71.1
Scripts
Under bin/
is a shell script which does most of the work of updating the
utilities from synapse.
It downloads, unpacks, syncs and tries to patch the files from synapse.
This is far from perfect and might needs manual adaption.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for matrix_synapse_testutils-1.90.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0e21c6706291d7f64ede01c449c0a6e682733d3c90ac4ef7ef0ac47a19dd96e |
|
MD5 | 81a51fae15cd77faa05c49d5c8e37203 |
|
BLAKE2b-256 | 3b66ed5f9beb8e4e69e4b5fc1a44e32b96cefaddedda3995d4e98c80d06269c8 |
Hashes for matrix_synapse_testutils-1.90.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af90e498175824425dde9314e75a9f8a1b2c10ff7dc60854604ad0bcc111c80f |
|
MD5 | 1158dd18dfe3831e1994e2f77f258bef |
|
BLAKE2b-256 | f5f7357044c52c58020ce01abf33b8c0da7112f6a894537c342a22b5bd7791cb |