Skip to main content

A library to standardize testing of GeneWeaver pacakges.

Project description

Geneweaver Testing

Tests Style Coverage

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. Add a fixture file at test root (if you don't have one already)
    touch tests/conftest.py
    
  5. Add the following to the fixture file
    # Inside tests/conftest.py
    from geneweaver.testing.fixtures import *
    
  6. 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.

Contributing

Contributions to this package are welcome. Please see the Contributing document for more information.

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.1.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

geneweaver_testing-0.1.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file geneweaver_testing-0.1.2.tar.gz.

File metadata

  • Download URL: geneweaver_testing-0.1.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.18 Linux/6.5.0-1016-azure

File hashes

Hashes for geneweaver_testing-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0a44ab370b4284c61fc1ddbdc32a0ce00881ccc5b9bdfbb6dfd76121fadbe7c8
MD5 fdb1f0ff2489bb9748aca6533784d29f
BLAKE2b-256 7b28adeb04f1bf862227fa4f1ac79daae194aadd3efa7c949f8823c06272689a

See more details on using hashes here.

File details

Details for the file geneweaver_testing-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: geneweaver_testing-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.18 Linux/6.5.0-1016-azure

File hashes

Hashes for geneweaver_testing-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 073fca36c9853fcf568398b199179049a241e254d12446bc1d3e25208b686fc0
MD5 b083698513091d6d36f87a337be8b36e
BLAKE2b-256 c29192f19a17603d32aec7d322270d7c875e16fb40a1f6134e8e0c9f2a591bf7

See more details on using hashes here.

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