Skip to content

Commit 085daba

Browse files
committed
fixing mock tests
1 parent 3212cb7 commit 085daba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_document_conversion_v1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_success():
2121
convertConfig = {'conversion_target': watson_developer_cloud.DocumentConversionV1.NORMALIZED_HTML}
2222
document_conversion.convert_document(document=document, config=convertConfig, media_type='text/html')
2323

24-
assert responses.calls[0].request.url == convert_url
24+
assert responses.calls[0].request.url.startswith(convert_url)
2525
assert responses.calls[0].response.text == convert_response
2626

2727
index_url = 'https://gateway.watsonplatform.net/document-conversion/api/v1/index_document'
@@ -42,7 +42,7 @@ def test_success():
4242
}
4343
document_conversion.index_document(config=indexConfig, document=document)
4444

45-
assert responses.calls[1].request.url == index_url
45+
assert responses.calls[1].request.url.startswith(index_url)
4646
assert responses.calls[1].response.text == index_response
4747

4848
assert len(responses.calls) == 2

0 commit comments

Comments
 (0)