Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 18, 2024
1 parent 6eae645 commit 33f3219
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ def test_collection_metadata_not_compiled(self):
def test_collection_metadata_ok(self):
response = self.client.get(f"{base_url}3/metadata/?format=json")
self.assertEqual(response.status_code, 200)
self.assertJSONEqual(response.content, {
'license': 'https://creativecommons.org/licenses/by/4.0/',
'ocid_prefix': 'ocds-px0z7d',
'publication_policy': 'http://base.gov.pt/policy/policy.html',
'published_from': '2019-11-25T17:20:38.079756Z',
'published_to': '2019-11-25T17:20:44.9244234Z'
})
self.assertJSONEqual(
response.content,
{
"license": "https://creativecommons.org/licenses/by/4.0/",
"ocid_prefix": "ocds-px0z7d",
"publication_policy": "http://base.gov.pt/policy/policy.html",
"published_from": "2019-11-25T17:20:38.079756Z",
"published_to": "2019-11-25T17:20:44.9244234Z",
},
)

0 comments on commit 33f3219

Please sign in to comment.