Open 14Richa opened 2 months ago
Hello, can you please provide more details on this? How do you want the test cases to be written? I cannot find any test case examples to look at.
I have written this test case but not sure if this satisfies the requirment. Please provide feedback.
def test_datasets_abuc_get(self):
"""Test case for datasets_abuc_get
Amount Of Balancing Reserves Under Contract (ABUC / B1720) # noqa: E501
"""
# Setting the parameters with arbitrary values
publish_date_time_from = '2022-08-22T07:43:04Z' # datetime
publish_date_time_to = '2023-08-22T07:43:04Z' # datetime
# Calling the api
response = self.api.datasets_abuc_get(publish_date_time_from, publish_date_time_to)
# Check if the response object is not None
self.assertIsNotNone(response)
# Check if the response contains data
self.assertTrue(response.to_dict().get('data'))
File can be found at test/test_datasets_api.py
@peterdudfield Can you please provide feedback?
Hi @yousefsawy , thanks for this. Yes this is really good. I wonder if you could also the data fields in 'data' . So check the response is InsightsApiModelsResponsesDatasetResponse1InsightsApiModelsResponsesTransparencyDatasetRowsAbucDatasetRow
as defined in the functiondescription
Yes, I will do that and create more test cases.
Thank you
Detailed Description
Develop a test suite for the following API endpoints: