Open mbjones opened 9 months ago
Started implementation of this build and test framework in branch https://github.com/PermafrostDiscoveryGateway/viz-staging/tree/feature-37-poetry-build . This provides a pyproject.toml file and a basic pytest setup with tests in the tests
directory. Example tests are currently just no-ops, and this is meant to be a starting point for a discussion on package build and setup for testing.
To build the package, run poetry build
, to install it run poetry install
. To run the tests, run pytest
from the root of the package directory.
@julietcohen @westminsterabi feedback appreciated, and let's discuss if this would help build out a better package test suite
After successful test run by @westminsterabi , I went ahead and merged PR #38 into develop
. Let's follow this same package and test structure for the other packages, viz-workflow, viz-raster, etc.
Found an issue that pydantic
was a required package but was not listed in the package dependencies. Fixed in sha 50449ab3 and pushed to develop
.
In discussing the need to better package testing, we discussed the need to run unit and integration tests for all packages. This issue is to set up
poetry
package metadata andpytest
as a testing framework and create example tests to be expanded.