Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /microsoft_agent-governance-toolkit /agent-governance-python /agent-mesh /tests /conftest.py
| # Copyright (c) Microsoft Corporation. | |
| # Licensed under the MIT License. | |
| """Shared pytest fixtures and markers for agent-mesh tests.""" | |
| from __future__ import annotations | |
| import shutil | |
| import pytest | |
| # Detect external policy engine availability once per session. | |
| _HAS_OPA_CLI = shutil.which("opa") is not None | |
| try: | |
| import cedarpy # noqa: F401 | |
| _HAS_CEDARPY = True | |
| except ImportError: | |
| _HAS_CEDARPY = False | |
| _HAS_CEDAR_CLI = shutil.which("cedar") is not None | |
| _HAS_CEDAR = _HAS_CEDARPY or _HAS_CEDAR_CLI | |
| requires_opa = pytest.mark.skipif( | |
| not _HAS_OPA_CLI, reason="opa CLI not installed" | |
| ) | |
| requires_cedar = pytest.mark.skipif( | |
| not _HAS_CEDAR, reason="cedarpy and cedar CLI not installed" | |
| ) | |
Xet Storage Details
- Size:
- 712 Bytes
- Xet hash:
- 1561530e1c7e867ede1480d836ceb07be14dec28433a2e202992e84e80cf4678
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.