Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunyez committed Oct 5, 2023
1 parent 0e03b03 commit ab3b37a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/testdrive/asciidoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def __init__(self, block):
self._block = block

def to_asciidoc(self):
yield literal_block(self.block)
yield literal_block(self._block)


class TestDetail:
Expand Down Expand Up @@ -278,7 +278,7 @@ def _tables_from_output(dct):
analysis = {}
for (key, val) in dct.items():
if isinstance(val, dict):
tables.append((key, val))
tables.append(Table(key, val))
elif isinstance(val, list):
try:
analysis[key] = '\n'.join(val)
Expand Down Expand Up @@ -315,7 +315,7 @@ def from_output(cls, output):
analysis = obj.get('analysis')
tables = cls._tables_from_output(analysis)
if tables is None and analysis is not None:
tables = [LiteralBlock(json.dump(analysis))]
tables = [LiteralBlock(json.dumps(analysis, indent=2))]

return cls(images, tables)

Expand Down

0 comments on commit ab3b37a

Please sign in to comment.