Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
remove test comparing datetimes down to seconds as not needed (#744)
Browse files Browse the repository at this point in the history
Co-authored-by: Toni Nurmi <[email protected]>
  • Loading branch information
Toni Nurmi and Toni Nurmi authored Jan 27, 2021
1 parent b5ce639 commit d43b073
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/metax_api/tests/api/rest/v2/views/datasets/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,17 +858,6 @@ def test_catalog_record_deprecated_and_date_deprecated_cannot_be_set(self):
self.assertEqual(response.data['deprecated'], initial_deprecated)
self.assertTrue('date_deprecated' not in response.data)

def test_catalog_record_deprecation_updates_date_modified(self):
cr = CatalogRecordV2.objects.filter(files__id=1)
cr_id = cr[0].identifier

response = self.client.delete('/rest/v2/files/1')
self.assertEqual(response.status_code, status.HTTP_200_OK, response.data)

cr_depr = CatalogRecordV2.objects.get(identifier=cr_id)
self.assertTrue(cr_depr.deprecated)
self.assertEqual(cr_depr.date_modified, cr_depr.date_deprecated, 'date_modified should be updated')

def test_change_datacatalog_ATT_to_IDA(self):
cr = self._get_new_full_test_att_cr_data()

Expand Down

0 comments on commit d43b073

Please sign in to comment.