Added CSS class rows-and-columns to main table

This commit is contained in:
Simon Willison 2018-04-23 18:30:03 -07:00
commit 00ab954300
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,4 @@
<table>
<table class="rows-and-columns">
<thead>
<tr>
{% for column in display_columns %}

View file

@ -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:]):