Skip to content

Commit cd5d435

Browse files
checks: Do not include branch or client when instantiating to follow .
1 parent c66eb32 commit cd5d435

File tree

1 file changed

+1
-2
lines changed
  • infrahub_sdk/pytest_plugin/items

1 file changed

+1
-2
lines changed

infrahub_sdk/pytest_plugin/items/check.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ def instantiate_check(self) -> None:
4040
check_class = self.resource_config.load_class( # type: ignore[attr-defined]
4141
import_root=self.repository_base, relative_path=relative_path
4242
)
43-
client = self.session.infrahub_client # type: ignore[attr-defined]
44-
self.check_instance = check_class(branch=client.default_branch, client=client)
43+
self.check_instance = check_class()
4544

4645
def run_check(self, variables: dict[str, Any]) -> Any:
4746
self.instantiate_check()

0 commit comments

Comments
 (0)