Skip to content

Commit

Permalink
Remove indent=2 from json() call
Browse files Browse the repository at this point in the history
pydantic v2 no longer accepts an indent value.
  • Loading branch information
timj committed Jul 18, 2023
1 parent 0534909 commit 049c615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_json(self):
report = Report(status=ExecutionStatus.FAILURE, exitCode=-1)
report.set_exception(RuntimeError("runtime error"))
report.quantaReports.append(qr)
json = report.json(exclude_none=True, indent=2)
json = report.json(exclude_none=True)
self.assertIsInstance(json, str)

report = Report.parse_raw(json)
Expand Down

0 comments on commit 049c615

Please sign in to comment.