Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julianhille/matrix-synapse-testutils
Base testutils of matrix synapse
https://github.com/julianhille/matrix-synapse-testutils
Last synced: about 1 month ago
JSON representation
Base testutils of matrix synapse
- Host: GitHub
- URL: https://github.com/julianhille/matrix-synapse-testutils
- Owner: julianhille
- License: apache-2.0
- Created: 2022-11-04T17:55:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-19T21:17:25.000Z (about 1 year ago)
- Last Synced: 2024-11-11T01:37:59.485Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 146 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# matrix-synapse-testutils
Base testutils of matrix synapseThis project includes the test utils from [matrix-synapse](https://github.com/matrix-org/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
```python
from matrix_synapse_testutils.unittest import HomeserverTestCase
```
# VersioningThe 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.01.70.0.1
This means it is the second release of `matrix_synapse_testutils` for synapse 1.70.01.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.