forked from DGNum/gestioCOF
Expand CSVResponseMixin functionality
This commit is contained in:
parent
9b0440429c
commit
6fff995ccd
3 changed files with 49 additions and 38 deletions
|
@ -92,9 +92,8 @@ class CSVExportContentTest(MessagePatch, CSVResponseMixin, TestCase):
|
|||
|
||||
response = self.client.get(self.url)
|
||||
|
||||
content = self.load_from_csv_response(response, as_dict=True)
|
||||
self.assertListEqual(
|
||||
content,
|
||||
self.assertCSVEqual(
|
||||
response,
|
||||
[
|
||||
{
|
||||
"username": "toto_foo",
|
||||
|
@ -141,7 +140,7 @@ class CSVExportContentTest(MessagePatch, CSVResponseMixin, TestCase):
|
|||
)
|
||||
|
||||
response = self.client.get(self.url)
|
||||
content = self.load_from_csv_response(response, as_dict=True)
|
||||
content = self._load_from_csv_response(response, as_dict=True)
|
||||
toto_dict = dict(content[0])
|
||||
|
||||
# This is not super nice, but it makes the test deterministic.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue