@@ -16,51 +16,51 @@ def setUp(self):
1616 def test_organization_get (self ):
1717 response = self .client .organizations ().get ()
1818 self .assertEqual (response .status_code , 200 )
19- self .assertEqual (response .request .url , "https://api.contentstack.io/v3 /organizations" )
19+ self .assertEqual (response .request .url , f" { self . client . endpoint } /organizations" )
2020 self .assertEqual (response .request .method , "GET" )
2121
2222
2323 def test_get_organization (self ):
2424 response = self .client .organizations (config .organization .org_uid ).get ()
2525 self .assertEqual (response .status_code , 200 )
26- self .assertEqual (response .request .url , f"https://api.contentstack.io/v3 /organizations/{ config .organization .org_uid } " )
26+ self .assertEqual (response .request .url , f"{ self . client . endpoint } /organizations/{ config .organization .org_uid } " )
2727 self .assertEqual (response .request .method , "GET" )
2828
2929 def test_get_organizations (self ):
3030 response = self .client .organizations ().get ()
3131 self .assertEqual (response .status_code , 200 )
32- self .assertEqual (response .request .url , f"https://api.contentstack.io/v3 /organizations" )
32+ self .assertEqual (response .request .url , f"{ self . client . endpoint } /organizations" )
3333 self .assertEqual (response .request .method , "GET" )
3434
3535 def test_get_organization_roles (self ):
3636 response = self .client .organizations (config .organization .org_uid ).get_organization_roles ()
3737 self .assertEqual (response .status_code , 200 )
38- self .assertEqual (response .request .url , f"https://api.contentstack.io/v3 /organizations/{ config .organization .org_uid } /roles" )
38+ self .assertEqual (response .request .url , f"{ self . client . endpoint } /organizations/{ config .organization .org_uid } /roles" )
3939 self .assertEqual (response .request .method , "GET" )
4040
4141 def test_organization_add_users (self ):
4242 response = self .client .organizations (config .organization .org_uid ).organization_add_users ()
4343 self .assertEqual (response .status_code , 200 )
44- self .assertEqual (response .request .url , f"https://api.contentstack.io/v3 /organizations/{ config .organization .org_uid } /share" )
44+ self .assertEqual (response .request .url , f"{ self . client . endpoint } /organizations/{ config .organization .org_uid } /share" )
4545 self .assertEqual (response .request .method , "GET" )
4646
4747 def test_transfer_organizations_ownership (self ):
4848 data = {"transfer_to" : "abc@sample.com" }
4949 response = self .client .organizations (config .organization .org_uid ).transfer_organizations_ownership (json .dumps (data ))
5050 self .assertEqual (response .status_code , 400 )
51- self .assertEqual (response .request .url , f"https://api.contentstack.io/v3 /organizations/{ config .organization .org_uid } /transfer-ownership" )
51+ self .assertEqual (response .request .url , f"{ self . client . endpoint } /organizations/{ config .organization .org_uid } /transfer-ownership" )
5252 self .assertEqual (response .request .method , "POST" )
5353
5454 def test_organization_stacks (self ):
5555 response = self .client .organizations (config .organization .org_uid ).organization_stacks ()
5656 self .assertEqual (response .status_code , 200 )
57- self .assertEqual (response .request .url , f"https://api.contentstack.io/v3 /organizations/{ config .organization .org_uid } /stacks" )
57+ self .assertEqual (response .request .url , f"{ self . client . endpoint } /organizations/{ config .organization .org_uid } /stacks" )
5858 self .assertEqual (response .request .method , "GET" )
5959
6060 def test_organization_logs (self ):
6161 response = self .client .organizations (config .organization .org_uid ).organization_logs ()
6262 self .assertEqual (response .status_code , 200 )
63- self .assertEqual (response .request .url , f"https://api.contentstack.io/v3 /organizations/{ config .organization .org_uid } /logs" )
63+ self .assertEqual (response .request .url , f"{ self . client . endpoint } /organizations/{ config .organization .org_uid } /logs" )
6464 self .assertEqual (response .request .method , "GET" )
6565
6666
0 commit comments