forked from mozilla-services/python-dockerflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
25 lines (20 loc) · 735 Bytes
/
conftest.py
File metadata and controls
25 lines (20 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
import pytest
import dockerflow.checks.registry
@pytest.fixture
def version_content():
"""
as documented on https://github.com/mozilla-services/Dockerflow/blob/main/docs/version_object.md
"""
return {
"source": "https://github.com/mozilla-services/python-dockerflow",
"version": "release tag or string for humans",
"commit": "<git hash>",
"build": "uri to CI build job",
}
@pytest.fixture(autouse=True)
def clear_checks():
yield
dockerflow.checks.registry.clear_checks()