Skip to content

Commit 0139e99

Browse files
authored
Storage: Fix unit test moving batch to batch/storage/v1 (googleapis#5082)
1 parent 61f948d commit 0139e99

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

storage/tests/unit/test_batch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def test_finish_nonempty(self):
340340
self.assertEqual(response3.headers, {'Content-Length': '0'})
341341
self.assertEqual(response3.status_code, http_client.NO_CONTENT)
342342

343-
expected_url = '{}/batch'.format(batch.API_BASE_URL)
343+
expected_url = '{}/batch/storage/v1'.format(batch.API_BASE_URL)
344344
http.request.assert_called_once_with(
345345
method='POST', url=expected_url, headers=mock.ANY, data=mock.ANY)
346346

@@ -403,7 +403,7 @@ def test_finish_nonempty_with_status_failure(self):
403403
{'foo': 1, 'bar': 2})
404404
self.assertIs(target2._properties, target2_future_before)
405405

406-
expected_url = '{}/batch'.format(batch.API_BASE_URL)
406+
expected_url = '{}/batch/storage/v1'.format(batch.API_BASE_URL)
407407
http.request.assert_called_once_with(
408408
method='POST', url=expected_url, headers=mock.ANY, data=mock.ANY)
409409

0 commit comments

Comments
 (0)