Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Dec 1, 2023
1 parent c201cc1 commit e58663b
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions tests/unit/common/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,30 +788,30 @@ def test_repr_html(self):
table = self.with_spec()
html = table._repr_html_()

assert html == '\n <style>\n .container-fields {\n font-family: "Open Sans", ' \
'Arial, sans-serif;\n }\n .container-fields .field-value {\n ' \
' color: #00788E;\n }\n .container-fields details > summary {\n ' \
' cursor: pointer;\n display: list-item;\n }\n ' \
'.container-fields details > summary:hover {\n color: #0A6EAA;\n }\n ' \
' </style>\n \n <script>\n function copyToClipboard(text) {\n ' \
' navigator.clipboard.writeText(text).then(function() {\n ' \
'console.log(\'Copied to clipboard: \' + text);\n }, function(err) {\n ' \
' console.error(\'Could not copy text: \', err);\n });\n ' \
'}\n\n document.addEventListener(\'DOMContentLoaded\', function() {\n ' \
' let fieldKeys = document.querySelectorAll(\'.container-fields .field-key\');\n ' \
' fieldKeys.forEach(function(fieldKey) {\n fieldKey.addEventListener(' \
'\'click\', function() {\n let accessCode = fieldKey.getAttribute(' \
'\'title\').replace(\'Access code: \', \'\');\n copyToClipboard(' \
'accessCode);\n });\n });\n });\n ' \
'</script>\n <div class=\'container-wrap\'><div class=\'container-header\'><div ' \
'class=\'xr-obj-type\'><h3>with_spec (DynamicTable)</h3></div></div><div style="margin-left: ' \
'0px;" class="container-fields"><span class="field-key" title="">description: </span><span ' \
'class="field-value">a test table</span></div><details><summary style="display: list-item; ' \
'margin-left: 0px;" class="container-fields field-key" title=""><b>table</b></summary><table ' \
'border="1" class="dataframe">\n <thead>\n <tr style="text-align: right;">\n ' \
'<th></th>\n <th>foo</th>\n <th>bar</th>\n <th>baz</th>\n </tr>\n <tr>\n ' \
' <th>id</th>\n <th></th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n ' \
'<tbody>\n </tbody>\n</table></details></div>'
assert html == (
'\n <style>\n .container-fields {\n font-family: "Open Sans", Arial, '
'sans-serif;\n }\n .container-fields .field-value {\n color: '
'#00788E;\n }\n .container-fields details > summary {\n cursor: '
'pointer;\n display: list-item;\n }\n .container-fields details > '
'summary:hover {\n color: #0A6EAA;\n }\n </style>\n \n '
'<script>\n function copyToClipboard(text) {\n navigator.clipboard.writeText('
'text).then(function() {\n console.log(\'Copied to clipboard: \' + text);\n '
' }, function(err) {\n console.error(\'Could not copy text: \', err);\n '
' });\n }\n\n document.addEventListener(\'DOMContentLoaded\', function() {\n '
' let fieldKeys = document.querySelectorAll(\'.container-fields .field-key\');\n '
'fieldKeys.forEach(function(fieldKey) {\n fieldKey.addEventListener(\'click\', '
'function() {\n let accessCode = fieldKey.getAttribute(\'title\').replace(\'Access '
'code: \', \'\');\n copyToClipboard(accessCode);\n });\n '
' });\n });\n </script>\n <div class=\'container-wrap\'><div '
'class=\'container-header\'><div class=\'xr-obj-type\'><h3>with_spec (DynamicTable)</h3></div></div><div '
'style="margin-left: 0px;" class="container-fields"><span class="field-key" title="">description: '
'</span><span class="field-value">a test table</span></div><details><summary style="display: list-item; '
'margin-left: 0px;" class="container-fields field-key" title=""><b>table</b></summary><table border="1" '
'class="dataframe">\n <thead>\n <tr style="text-align: right;">\n <th></th>\n '
'<th>foo</th>\n <th>bar</th>\n <th>baz</th>\n </tr>\n <tr>\n <th>id</th>\n '
'<th></th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n '
'</tbody>\n</table></details></div>'
)


def test_add_column_existing_attr(self):
Expand Down

0 comments on commit e58663b

Please sign in to comment.