Skip to main content

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

  1. Install the package
    poetry install -G dev geneweaver-testing
    
  2. Make a "common" test file
    touch tests/common.py
    
  3. Add the following to the "common" test file
    # Inside tests/common.py
    from geneweaver.testing import *
    
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geneweaver_testing-0.0.1a2.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

geneweaver_testing-0.0.1a2-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page