Skip to content

Commit

Permalink
Fix utils URLs setter (#95)
Browse files Browse the repository at this point in the history
* add a method to set locale from the selected lang - close #91

* minor fixes before release

* housekeeping dependencies

* fix urls setter
  • Loading branch information
Guts committed Aug 27, 2019
1 parent 5b7f787 commit 768fcc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions isogeo_pysdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def set_base_url(self, platform: str = "prod"):
# set values
self.api_url = self.API_URLS.get(platform)
self.app_url = self.APP_URLS.get(platform)
self.csw_url = self.CSW_URLS.get(platform)
self.mng_url = self.MNG_URLS.get(platform)
self.oc_url = self.OC_URLS.get(platform)

# method ending
return (
Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def test_set_base_url(self):
self.assertIsInstance(ssl, bool)
self.assertEqual(platform, "qa")
self.assertEqual(api_url, self.utils.API_URLS.get("qa"))
self.assertEqual(oc_url, self.utils.OC_URLS.get("qa"))
self.assertEqual(ssl, False)

def test_set_base_url_bad_parameter(self):
Expand Down

0 comments on commit 768fcc8

Please sign in to comment.