Skip to content

Commit a38e999

Browse files
Fix testlinker & increase tooling version (#403)
1 parent 15e1779 commit a38e999

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ bazel_dep(name = "score_process", version = "1.4.3")
104104

105105
# Add Linter
106106
bazel_dep(name = "rules_multitool", version = "1.9.0")
107-
bazel_dep(name = "score_tooling", version = "1.1.2-RC")
107+
bazel_dep(name = "score_tooling", version = "1.1.2")
108108

109109
multitool_root = use_extension("@rules_multitool//multitool:extension.bzl", "multitool")
110110
use_repo(multitool_root, "actionlint_hub", "multitool", "ruff_hub", "shellcheck_hub", "yamlfmt_hub")

src/extensions/score_source_code_linker/testlink.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,17 @@ class DataOfTestCase:
9393

9494
@classmethod
9595
def from_dict(cls, data: dict[str, Any]): # type-ignore
96-
return cls(**data) # type-ignore
96+
return cls(
97+
name=data["name"],
98+
file=data["file"],
99+
line=data["line"],
100+
result=data["result"],
101+
TestType=data["TestType"],
102+
DerivationTechnique=data["DerivationTechnique"],
103+
result_text=data["result_text"],
104+
PartiallyVerifies=data.get("PartiallyVerifies"),
105+
FullyVerifies=data.get("FullyVerifies"),
106+
)
97107

98108
@classmethod
99109
def clean_text(cls, text: str):

0 commit comments

Comments
 (0)