Commit a2c7d8f6 authored by Ritika Kaushal's avatar Ritika Kaushal
Browse files

changes in unit test case

parent a4fd381e
Pipeline #108241 failed with stages
in 1 minute and 18 seconds
......@@ -18,7 +18,7 @@ class TestOsduClient:
_expected_ids_str = [{"id": "321"}, {"id": "432"}, {"id": "543"}]
_access_token = "token"
_data_partition_id = "AnId"
_serviceName="wellbore"
_serviceName= "wellbore"
mockConfig = Mock(spec=Configuration)
mockConfig.data_partition_id= "AnId"
mockConfig.wellbore_service_path_prefix=None
......@@ -321,12 +321,12 @@ class TestOsduClient:
assert result == ["321", "432", "543"]
def test_get_base_url(self, _serviceName):
def test_get_base_url(self):
# Assemble
base_url = "http://test.bp.com"
client = OsduClient(self.mockConfig, self._access_token)
# Act
result = client.get(self,_serviceName)
result = client.get_base_url(self._serviceName)
assert result.equals(base_url)
\ No newline at end of file
assert result == base_url
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment