Helper fixtures to test web applications using the Ringo web framework
## Fixtures
This plugin provides the following fixtures:
1. **app** A *TestApp* instance from *webtest* of the application. Scope is "module".
1. **config** The config object used to configure route etc. Scope is "module".
1. **apprequest** A *DummyRequest* from *Pyramid* to be used to call views. No scope.
## Helpers
This plugin provides the following helper methods. Please consult the source
to see how to use the methods:
### Transactions
1. **transaction_begin** Begin a new transaction for a testcase
1. **transaction_rollback** Rollback the currently running transaction
### Usecases
1. **login** Login a given user
### Getting data
1. **get_data** A helper methods to get data from the application using the
REST API.
1. **search_data** A helper methods to search for a specific item in the
database using the using the
REST API.
1. **get_max_id** Get the max id of a table in the database (usefull to get
the id of the last insererted item) using the REST API.
## Invoke
You need to provide the URL to the .ini file when invoking the pytest command::
py-test --app-config="path/to/config.ini"
Metadata
Release files for pytest-ringo 0.2.3
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 |
|---|---|---|---|---|
| pytest-ringo-0.2.3.tar.gz | 4.2 kB | Without provenance | Details for pytest-ringo-0.2.3.tar.gz |
Release files / pytest-ringo-0.2.3.tar.gz
| Download URL | pytest-ringo-0.2.3.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9e63006e12be6bc5bd46b2de3026e61c5f34bd26342f4ce72bd090cd8884c3c
|
|
BLAKE2b-256 checksum How to use checksums |
d0085b3fe44dc5ba8f36a4e799098df14f624a95f3b9fa42283f2e167e333fac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytest-ringo 0.2.3
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.