Skip to main content

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.

Metadata

Release files for geneweaver-testing 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geneweaver-testing 0.1.2
File Size Uploaded
geneweaver_testing-0.1.2.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geneweaver-testing 0.1.2
File Interpreter ABI Platform
geneweaver_testing-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / geneweaver_testing-0.1.2.tar.gz

Download URL geneweaver_testing-0.1.2.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0a44ab370b4284c61fc1ddbdc32a0ce00881ccc5b9bdfbb6dfd76121fadbe7c8
BLAKE2b-256 checksum
How to use checksums
7b28adeb04f1bf862227fa4f1ac79daae194aadd3efa7c949f8823c06272689a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.9.18 Linux/6.5.0-1016-azure

Release files / geneweaver_testing-0.1.2-py3-none-any.whl

Download URL geneweaver_testing-0.1.2-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
073fca36c9853fcf568398b199179049a241e254d12446bc1d3e25208b686fc0
BLAKE2b-256 checksum
How to use checksums
c29192f19a17603d32aec7d322270d7c875e16fb40a1f6134e8e0c9f2a591bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.9.18 Linux/6.5.0-1016-azure
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page