Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 925acc6e authored by Dorian Turba's avatar Dorian Turba
Browse files

template testing

parent 68e5df16
No related branches found
No related tags found
No related merge requests found
Pipeline #22006 failed
stages:
- test
include:
- local: 'templates/python/testing/pytest/pytest.yml'
pytest:
variables:
IMAGE_TAG: "latest"
PROJECT_PATH: "tests/test_project"
PYTHON_SETUP: "pip install ${PROJECT_PATH}[TESTS]"
# Contributing to r2devops_catalog
## How to test templates locally
Install `gitlab_runner`: https://docs.gitlab.com/runner/install/index.html
# CI templates for R2DevOps open source catalog
This repository contains CI templates for R2DevOps open source catalog.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "test_project"
version = "0.1.0"
authors = [
{ name = "Author Name", email = "author.name@example.com" },
]
description = "A description of what the package is for."
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-rA -q --strict-markers"
testpaths = [
"tests",
"integration",
]
from test_project.main import main
__all__ = ['main']
"""Sample main module."""
def main() -> bool:
"""Sample main function."""
print("Hello, world!")
return True
if __name__ == '__main__':
main()
"""Sample test module."""
from test_project import main
def test_main():
"""Test main function."""
assert main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment