Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2024
1 parent 06a064e commit 7ce5b3f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/unit/test_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ def __init__(self, **kwargs):
self.child = kwargs['child']
self.data = kwargs['data']
self.str = kwargs['str']

class ContainerWithData(Container):

__fields__ = (
"data",
"str"
Expand All @@ -439,9 +439,9 @@ def __init__(self, **kwargs):
super().__init__('test name')
self.data = kwargs['data']
self.str = kwargs['str']



def test_repr_html_(self):
child_obj1 = Container('test child 1')
obj1 = self.ContainerWithChildAndData(child=child_obj1, data=[1, 2, 3], str="hello")
Expand Down Expand Up @@ -474,9 +474,9 @@ def test_repr_html_(self):
'class="field-value">hello</span></div></div>'
)


def test_repr_html_hdf5_dataset(self):

import h5py

# Open an HDF5 file in write mode
Expand All @@ -491,7 +491,7 @@ def test_repr_html_hdf5_dataset(self):

obj = self.ContainerWithData(data=dataset, str="hello")
html_repr = obj._repr_html_()

expected_html = (
'<style>\n'
' .container-fields {\n'
Expand Down

0 comments on commit 7ce5b3f

Please sign in to comment.