Skip to content

Commit

Permalink
add newsfrag; fix a table.log bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyu-ms committed Nov 1, 2024
1 parent e2bbc3f commit 003746a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support :py:class:`RemoteDriver <testplan.common.remote.remote_driver.RemoteDriver>` in dependency graph of test environment (the ``dependencies`` parameter).
5 changes: 5 additions & 0 deletions examples/Assertions/Basic/test_plan_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def test_table_namespace(self, env, result):
["Rick", 67],
]

tuple_of_tuples = tuple(tuple(r) for r in list_of_lists)

sample_table = [
["symbol", "amount"],
["AAPL", 12],
Expand All @@ -61,6 +63,9 @@ def test_table_namespace(self, env, result):
display_index=True,
description="Table Log: list of lists",
)
result.table.log(
tuple_of_tuples, description="Table Log: tuple of tuples"
)
result.table.log(list_of_lists[:1], description="Empty table")
result.table.log(
[{"name": "Bob", "age": 32}, {"name": "Susan"}],
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"validators<=0.20.0",
"Pillow",
"plotly",
"pandas",
"pandas", # required by plotly.express
"rpyc",
"matplotlib",
"memoization",
Expand Down
2 changes: 1 addition & 1 deletion testplan/testing/multitest/entries/stdout/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get_details(self, entry: base.TableLog) -> str:
if isinstance(cell, bytes):
entry.table[j][i] = str(cell)

return AsciiTable([entry.columns] + entry.table).table
return AsciiTable([entry.columns, *entry.table]).table


@registry.bind(base.DictLog, base.FixLog)
Expand Down

0 comments on commit 003746a

Please sign in to comment.