Skip to content

Commit

Permalink
Merge pull request #534 from data-8/ahemani/fix_tests_20220604
Browse files Browse the repository at this point in the history
HOTFIX: Fix master branch tests
  • Loading branch information
davidwagner committed Jun 6, 2022
2 parents 07d9f3f + 5258d45 commit 902c9d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
activate-environment: datascience
environment-file: linux_environment.yml
python-version: 3.6
python-version: '3.10'
auto-activate-base: true

- name: Add conda to system path
Expand Down
7 changes: 4 additions & 3 deletions datascience/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2877,13 +2877,14 @@ def as_html(self, max_rows=0):
uvw | 20 | 5.9
>>> table_as_html = table.as_html()
<table border="1" class="dataframe">\\n <thead>\\n <tr>\\n
>>> table_as_html
'<table border="1" class="dataframe">\\n <thead>\\n <tr>\\n
<th>name</th> <th>age</th> <th>height</th>\\n
</tr>\\n </thead>\\n <tbody>\\n
<tr>\\n <td>abc </td> <td>12 </td> <td>5.5 </td>\\n </tr>\\n
<tr>\\n <td>xyz </td> <td>14 </td> <td>6 </td>\\n </tr>\\n
<tr>\\n <td>uvw </td> <td>20 </td> <td>5.9 </td>\\n </tr>\\n
</tbody>\\n</table>
</tbody>\\n</table>'
2. Simple table being converted to HTML with max_rows passed in
Expand Down Expand Up @@ -4626,7 +4627,7 @@ def _visualize(self, x_label, y_labels, ticks, overlay, draw, annotate, width=6,
type(self).plots.append(axis)
else:
fig, axes = plt.subplots(n, 1, figsize=(width, height*n))
if not isinstance(axes, collections.Iterable):
if not isinstance(axes, collections.abc.Iterable):
axes=[axes]
for axis, y_label, color in zip(axes, y_labels, colors):
draw(axis, y_label, color)
Expand Down
2 changes: 1 addition & 1 deletion requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pytest==6.0.1
pytest==7.1.2
coverage
coveralls
bokeh
Expand Down

0 comments on commit 902c9d6

Please sign in to comment.