9c9bf61ee3
Autouse fixtures in pytest are a powerful way of executing a fixture for each test. Since Pegleg uses a global in-memory object for storing config info, this dictionary should be cleaned up after each test to ensure test idempotency. The best way (and cleanest) is to use an autouse fixture inside a conftest.py which ensures that it is used after each and every unit test [0]. [0] https://docs.pytest.org/en/latest/fixture.html#conftest-py-sharing-fixture-functions Change-Id: I0c647d3d7547d1bdcd7c289a4c11159376f9f58d |
||
---|---|---|
doc | ||
images/pegleg | ||
site_yamls/site | ||
src/bin/pegleg | ||
tools | ||
.dockerignore | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
LICENSE | ||
Makefile | ||
README.md | ||
tox.ini |
README.md
Pegleg
Pegleg is document aggregator that provides early linting and validations via Deckhand for documents that can be consumed by UCP. To learn more about UCP see UCP Integration
Getting Started
To get started, see getting started