Skip to content

Commit f445f85

Browse files
lamwassisinha108
andauthored
Update tests/analysis/go/test_go_analysis.py
Co-authored-by: Saurabh Sinha <sinha108@gmail.com>
1 parent 1e319be commit f445f85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/analysis/go/test_go_analysis.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def _capture(cmd, *args, **kwargs):
127127
out = Path(cmd[cmd.index("-o") + 1]) if "-o" in cmd else None
128128
if out:
129129
out.mkdir(parents=True, exist_ok=True)
130-
(out / "analysis.json").write_text(FIXTURE.read_text(encoding="utf-8"), encoding="utf-8")
131-
return MagicMock(stdout=FIXTURE.read_text(encoding="utf-8"), returncode=0)
130+
(out / "analysis.json").write_text(GO_ANALYSIS.read_text(encoding="utf-8"), encoding="utf-8")
131+
return MagicMock(stdout=GO_ANALYSIS.read_text(encoding="utf-8"), returncode=0)
132132

133133
monkeypatch.setenv("CODEANALYZER_GO_BIN", "cango")
134134
monkeypatch.setattr("subprocess.run", _capture)

0 commit comments

Comments
 (0)