Skip to content

Commit 35feb73

Browse files
committed
Added additional test reporting due to CI-only failure.
1 parent aab8c67 commit 35feb73

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

pyrasterframes/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Python / doc := (Python / doc / target).toTask.dependsOn(
99
Def.sequential(
1010
assembly,
1111
Test / compile,
12-
pySetup.toTask(" pweave")
12+
pySetup.toTask(" pweave --quick True")
1313
)
1414
).value
1515

pyrasterframes/src/main/python/tests/IpythonTests.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,19 @@ def test_display_extension(self):
7272
ip = globalipapp.get_ipython()
7373

7474
num_rows = 2
75-
row_count = 0
7675

77-
def counter(data, _):
78-
nonlocal row_count
79-
row_count = data.count('<tr>')
76+
result = {}
77+
78+
def counter(data, md):
79+
nonlocal result
80+
result['payload'] = (data, md)
81+
result['row_count'] = data.count('<tr>')
8082
ip.mime_renderers['text/html'] = counter
8183

8284
# ip.mime_renderers['text/markdown'] = lambda a, b: print(a, b)
8385

8486
self.df.display(num_rows=num_rows)
8587

8688
# Plus one for the header row.
87-
self.assertIs(row_count, num_rows+1)
89+
self.assertIs(result['row_count'], num_rows+1, msg=f"Received: {result['payload']}")
90+

0 commit comments

Comments
 (0)