cglbtest Framework
Project description
cglbtest Framework
cglbtest Framework
Usage
Install
pip install cglbtest
Get started
cd path/to/test/folder
cglb run .
Dev
Install
after install prerequisites poetry
poetry dependances + manually netCDF4 an cv2 for now + pytest
poetry install
pip install netCDF4
pip install opencv-python
pip install pytest
Tests
pytest tests/
# only comparison errors
pytest -s tests/unit_tests/01_errors/
With docker
Use the cglb poetry image
docker run -it --rm -v ./:/mnt -w /mnt cglbdev/cicd-python-packager:3-11 bash
In container example:
Normally do following but for now not working because netCDF4 explore is not installed
# install dependances
poetry install
poetry run pytest
then manually
# install dependances
poetry install
# activate venv for manual actions
poetry shell
# for now manually => externalize in plugin
pip install netCDF4
# in cicd context pytest
pip install pytest pytest-html pytest-xdist pytest-progress
# run all tests
pytest tests/
# run 1 test
pytest -s tests/unit_tests/01_errors/test_errors.py::TestErrors::test_01_equals
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cglbtest-0.1.4-py3-none-any.whl
(36.5 kB
view details)
File details
Details for the file cglbtest-0.1.4-py3-none-any.whl.
File metadata
- Download URL: cglbtest-0.1.4-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.2 Linux/6.1.0-17-cloud-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be6b6f302129478d6b27d2a8a5995074b7c4a6d8b5859c72e8f746dcaf8ec14c
|
|
| MD5 |
0bdcccac51f6d819a4bc5ee87c05dd68
|
|
| BLAKE2b-256 |
49b7d21fe5ba73953290e91e7316362560e3ae20b58bddac98e3f290eb29e11c
|