Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

cglbtest-0.1.4-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

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

Hashes for cglbtest-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 be6b6f302129478d6b27d2a8a5995074b7c4a6d8b5859c72e8f746dcaf8ec14c
MD5 0bdcccac51f6d819a4bc5ee87c05dd68
BLAKE2b-256 49b7d21fe5ba73953290e91e7316362560e3ae20b58bddac98e3f290eb29e11c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page