Skip to content

Commit d998d31

Browse files
committed
Add https for a couple more test fixtures
1 parent 85cf810 commit d998d31

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/test_authentication.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_authorize_url_with_state(self):
2525
state=state
2626
)
2727
self.assertEqual(authorize_url,
28-
"https://api.createsend.com/oauth?client_id=8998879&redirect_uri=http%3A%2F%2Fexample.com%2Fauth&scope=ViewReports%2CCreateCampaigns%2CSendCampaigns&state=89879287"
28+
"https://api.createsend.com/oauth?client_id=8998879&redirect_uri=https%3A%2F%2Fexample.com%2Fauth&scope=ViewReports%2CCreateCampaigns%2CSendCampaigns&state=89879287"
2929
)
3030

3131
def test_authorize_url_without_state(self):
@@ -40,7 +40,7 @@ def test_authorize_url_without_state(self):
4040
scope=scope
4141
)
4242
self.assertEqual(authorize_url,
43-
"https://api.createsend.com/oauth?client_id=8998879&redirect_uri=http%3A%2F%2Fexample.com%2Fauth&scope=ViewReports%2CCreateCampaigns%2CSendCampaigns"
43+
"https://api.createsend.com/oauth?client_id=8998879&redirect_uri=https%3A%2F%2Fexample.com%2Fauth&scope=ViewReports%2CCreateCampaigns%2CSendCampaigns"
4444
)
4545

4646
def test_exchange_token_success(self):
@@ -58,7 +58,7 @@ def test_exchange_token_success(self):
5858
code=code
5959
)
6060
self.assertEqual(self.cs.faker.actual_body,
61-
"grant_type=authorization_code&client_id=8998879&client_secret=iou0q9wud0q9wd0q9wid0q9iwd0q9wid0q9wdqwd&redirect_uri=http%3A%2F%2Fexample.com%2Fauth&code=98uqw9d8qu9wdu")
61+
"grant_type=authorization_code&client_id=8998879&client_secret=iou0q9wud0q9wd0q9wid0q9iwd0q9wid0q9wdqwd&redirect_uri=https%3A%2F%2Fexample.com%2Fauth&code=98uqw9d8qu9wdu")
6262
self.assertEqual(access_token, "SlAV32hkKG")
6363
self.assertEqual(expires_in, 1209600)
6464
self.assertEqual(refresh_token, "tGzv3JOkF0XG5Qx2TlKWIA")
@@ -74,7 +74,7 @@ def test_echange_token_failure(self):
7474
self.assertRaises(Exception, self.cs.exchange_token,
7575
client_id, client_secret, redirect_uri, code)
7676
self.assertEqual(self.cs.faker.actual_body,
77-
"grant_type=authorization_code&client_id=8998879&client_secret=iou0q9wud0q9wd0q9wid0q9iwd0q9wid0q9wdqwd&redirect_uri=http%3A%2F%2Fexample.com%2Fauth&code=invalidcode")
77+
"grant_type=authorization_code&client_id=8998879&client_secret=iou0q9wud0q9wd0q9wid0q9iwd0q9wid0q9wdqwd&redirect_uri=https%3A%2F%2Fexample.com%2Fauth&code=invalidcode")
7878

7979
def test_can_authenticate_by_calling_auth_with_api_key(self):
8080
self.cs = CreateSend(self.api_key_auth_details)

0 commit comments

Comments
 (0)