Socket
Book a DemoInstallSign in
Socket

geneweaver-testing

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geneweaver-testing

A library to standardize testing of GeneWeaver pacakges.

0.1.2
pipPyPI
Maintainers
1

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

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

Contributing

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.