Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzawaleed01 committed Jan 25, 2024
1 parent b5d6b33 commit a839059
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,8 @@ def setUp(self):
self.endpoint = 'https://example.com/endpoint'
self.payload = "{}"
self.time_taken = 500
api_record = ApiResponseRecord(status_code=200, body='SUCCESS')
api_record.save()
self.api_record = api_record
self.response_body = "{}"
self.status_code = 200
super().setUp()

def test_content_meta_data_string_representation(self):
Expand All @@ -289,8 +288,8 @@ def test_content_meta_data_string_representation(self):
f', enterprise_customer_configuration_id: {self.enterprise_customer_configuration_id}>'
f', endpoint: {self.endpoint}'
f', time_taken: {self.time_taken}'
f', api_record.body: {self.api_record.body}'
f', api_record.status_code: {self.api_record.status_code}'
f", response_body: {self.response_body}"
f", status_code: {self.status_code}"
)

request_log = IntegratedChannelAPIRequestLogs(
Expand All @@ -300,6 +299,7 @@ def test_content_meta_data_string_representation(self):
endpoint=self.endpoint,
payload=self.payload,
time_taken=self.time_taken,
api_record=self.api_record
response_body=self.response_body,
status_code=self.status_code
)
assert expected_string == repr(request_log)

0 comments on commit a839059

Please sign in to comment.