mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Added CSS class rows-and-columns to main table
This commit is contained in:
parent
f3f4295712
commit
00ab954300
2 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<table>
|
||||
<table class="rows-and-columns">
|
||||
<thead>
|
||||
<tr>
|
||||
{% for column in display_columns %}
|
||||
|
|
|
|||
|
|
@ -172,6 +172,7 @@ def test_table_html_simple_primary_key(app_client):
|
|||
response = app_client.get('/test_tables/simple_primary_key', gather_request=False)
|
||||
assert response.status == 200
|
||||
table = Soup(response.body, 'html.parser').find('table')
|
||||
assert table['class'] == ['rows-and-columns']
|
||||
ths = table.findAll('th')
|
||||
assert 'id' == ths[0].find('a').string.strip()
|
||||
for expected_col, th in zip(('content',), ths[1:]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue