synapse-test-helper
Utilities for integration testing against Synapse.
Installation
pip install synapse-test-helper
Usage
Create a fixture that yields a configured instance of SynapseTestHelper using the context manager.
Example:
conftest.py:
from synapse_test_helper import SynapseTestHelper
@pytest.fixture
def synapse_test_helper():
synapse_client = synapseclient.Synapse()
synapse_client.login() # Set to use your preferred login method for Synapse.
with SynapseTestHelper(synapse_client) as sth:
yield sth
test_my_stuff.py:
def test_my_fuction(synapse_test_helper):
project = synapse_test_helper.create_project()
# other test code...
# when this method ends the project will be deleted on Synapse.
Development Setup
git clone https://github.com/ki-tools/synapse-test-helper-py.git
cd synapse-test-helper-py
pipenv --three
pipenv shell
make pip_install
Run tests:
- Rename
.env.templateto.envand set the variables in the file. - Run
make testortox
Metadata
Release files for synapse-test-helper 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| synapse_test_helper-0.1.0.tar.gz | 10.1 kB | Without provenance | Details for synapse_test_helper-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| synapse_test_helper-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for synapse_test_helper-0.1.0-py3-none-any.whl |
Total release size: 24.4 kB
Release files / synapse_test_helper-0.1.0.tar.gz
| Download URL | synapse_test_helper-0.1.0.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae534825d4d04bb96dc869b584b5239f2233f4e617f40bb77e2ff858820c566e
|
|
BLAKE2b-256 checksum How to use checksums |
2c5679ba860819d730877fde94958e67a9cd7858d8c7931e1d4970875cff5ad9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Release files / synapse_test_helper-0.1.0-py3-none-any.whl
| Download URL | synapse_test_helper-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aee8e65c26fd8f7efec27422e7d32b976d9f08422c5d51b74c81fdeb99d68d1f
|
|
BLAKE2b-256 checksum How to use checksums |
5ce1a72fb3fa50ae13e3cfab8fc8c413dc08031c828f2062de6cba625ca7368f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.12
|
Security for synapse-test-helper 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.