A library to standardize testing of GeneWeaver pacakges.
Project description
Geneweaver Testing
This package is used to test the Geneweaver project. It contains tools for running tests against Geneweaver project packages and components to aid in the development of Geneweaver.
Quick Start
- Install the package
poetry install -G dev geneweaver-testing
- Make a "common" test file
touch tests/common.py
- Add the following to the "common" test file
# Inside tests/common.py from geneweaver.testing import *
- Run Tests!
pytest tests
Package Modules
Like all Geneweaver packages, this package is namespaced under the geneweaver
package. The root of this package is
geneweaver.testing
. The package is structured for usage in pytest tests, with pre-defined tests available through
splat (*
) imports as shown in the Quick Start. Other package functionality is available by specifically importing
modules.
The following modules are available in this package:
geneweaver.testing.fixtures
This module contains pytest fixtures that are used to test Geneweaver packages. These fixtures can be used to set up test contexts for Geneweaver packages. This module does not contain any tests.
geneweaver.testing.package
This module contains tools for testing and validating Geneweaver packages.
geneweaver.testing.schemas
This module contains tools for validating that methods and functions in Geneweaver packages conform to the Geneweaver
project schemas. This package does not contain the schemas themselves. The schemas are defined in the
geneweaver-core
/ geneweaver.core.schemas
package.
geneweaver.testing.syntax
This module contains tools for running syntax and style checks on Geneweaver packages. This ensures that Geneweaver packages each conform to the same style and syntax standards.
Usage
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 geneweaver_testing-0.0.1a2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 760ffc5a880063aef087afb57ef10037ba45bcfd1be490af7fa11c104af60e54 |
|
MD5 | ea17a797246f153f7c98939b10bc5767 |
|
BLAKE2b-256 | 0354d6854d01b7cdddd7eecc4c504e1d577efa7b1e2004cdea40710b189712e5 |
Hashes for geneweaver_testing-0.0.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab0c178c61b91b490f8603b2854e847620bb0910e9a9da201d6905b0e49b3075 |
|
MD5 | 33821cccb82ea8452d90e40d7a9fceb7 |
|
BLAKE2b-256 | d09a6a6e418a652201b6a32674e0df83ef69f05bd1a04f957dd5113c14eee7eb |