def test_get_dataset(self, configuration, post_dataset): resource_data = copy.deepcopy(TestResource.resource_data) resource = Resource(resource_data) dataset = resource.get_dataset() assert dataset['id'] == '6f36a41c-f126-4b18-aaaf-6c2ddfbc5d4d' del resource['package_id'] with pytest.raises(HDXError): resource.get_dataset()
def test_get_dataset(self, configuration, post_dataset): resource_data = copy.deepcopy(TestResource.resource_data) resource = Resource(resource_data) dataset = resource.get_dataset() assert dataset['id'] == '6f36a41c-f126-4b18-aaaf-6c2ddfbc5d4d' del resource['package_id'] with pytest.raises(HDXError): resource.get_dataset()
def test_get_dataset(self, configuration, post_dataset): resource_data = copy.deepcopy(TestResource.resource_data) resource = Resource(resource_data) dataset = resource.get_dataset() assert dataset['id'] == '6f36a41c-f126-4b18-aaaf-6c2ddfbc5d4d'