Fixed CSV tests - Python 3.6.5 and 3.6.3 apparently differ

The test used to expect CSV to come back like this:

	hello
	world
	""

With the final blank value encoded in quotes.

Judging by Travis failures, this behaviour changed between Python 3.6.3 and
3.6.5:

	https://travis-ci.org/simonw/datasette/jobs/392586661
pull/311/merge
Simon Willison 2018-06-15 00:01:48 -07:00
rodzic 3a79ad98ea
commit 5bda4a477c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 17E2DEA2588B7F52
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -9,7 +9,6 @@ EXPECTED_TABLE_CSV = '''id,content
EXPECTED_CUSTOM_CSV = '''content
hello
world
""
'''.replace('\n', '\r\n')
@ -22,7 +21,7 @@ def test_table_csv(app_client):
def test_custom_sql_csv(app_client):
response = app_client.get(
'/test_tables.csv?sql=select+content+from+simple_primary_key'
'/test_tables.csv?sql=select+content+from+simple_primary_key+limit+2'
)
assert response.status == 200
assert 'text/plain; charset=utf-8' == response.headers['Content-Type']