You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new collection of tools and utilities to help with testing is available under `infrahub_sdk.testing`.
21
+
22
+
The first component available is a `TestInfrahubDockerClient`, a pytest Class designed to help creating integration tests based on Infrahub. See a simple example below to help you get started.
23
+
24
+
> the installation of `infrahub-testcontainers` is required
25
+
26
+
```python
27
+
import pytest
28
+
29
+
from infrahub_sdk import InfrahubClient
30
+
from infrahub_sdk.testing.docker import TestInfrahubDockerClient
31
+
32
+
classTestInfrahubNode(TestInfrahubDockerClient):
33
+
34
+
@pytest.fixture(scope="class")
35
+
definfrahub_version(self) -> str:
36
+
"""Required (for now) to define the version of infrahub to use."""
0 commit comments