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

remove test comparing datetimes down to seconds as not needed #744

Merged
merged 1 commit into from
Jan 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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