Skip to content
Permalink
Browse files

[fix] update csv unit test

  • Loading branch information
asciimoo committed Mar 13, 2020
1 parent 58a6303 commit 8e727ac77f5db59c1b772d9fd7603b519badb35a
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/unit/test_webapp.py
@@ -99,9 +99,9 @@ def test_index_csv(self):
result = self.app.post('/', data={'q': 'test', 'format': 'csv'})

self.assertEqual(
b'title,url,content,host,engine,score\r\n'
b'First Test,http://first.test.xyz,first test content,first.test.xyz,startpage,\r\n' # noqa
b'Second Test,http://second.test.xyz,second test content,second.test.xyz,youtube,\r\n', # noqa
b'title,url,content,host,engine,score,type\r\n'
b'First Test,http://first.test.xyz,first test content,first.test.xyz,startpage,,result\r\n' # noqa
b'Second Test,http://second.test.xyz,second test content,second.test.xyz,youtube,,result\r\n', # noqa
result.data
)

0 comments on commit 8e727ac

Please sign in to comment.
You can’t perform that action at this time.