Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion infrahub_sdk/pytest_plugin/items/python_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import ujson
from httpx import HTTPStatusError

from ...node import InfrahubNode
from ..exceptions import OutputMatchError, PythonTransformDefinitionError
from ..models import InfrahubTestExpectedResult
from .base import InfrahubItem
Expand Down Expand Up @@ -41,7 +42,7 @@
)
client = self.session.infrahub_client # type: ignore[attr-defined]
# TODO: Look into seeing how a transform class may use the branch, but set as a empty string for the time being to keep current behaviour
self.transform_instance = transform_class(branch="", client=client)
self.transform_instance = transform_class(branch="", client=client, infrahub_node=InfrahubNode)

Check warning on line 45 in infrahub_sdk/pytest_plugin/items/python_transform.py

View check run for this annotation

Codecov / codecov/patch

infrahub_sdk/pytest_plugin/items/python_transform.py#L45

Added line #L45 was not covered by tests

def run_transform(self, variables: dict[str, Any]) -> Any:
self.instantiate_transform()
Expand Down