Skip to content

Commit 47d0202

Browse files
committed
minor fixes
1 parent 74fdaf8 commit 47d0202

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ language: python
33
python:
44
- "2.6"
55
- "2.7"
6+
- "3.3"
7+
- "3.4"
8+
- "3.5"
9+
- "3.6"
610

711
# command to install dependencies
812
install: "pip install testingbotclient"

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 TestingBot
3+
Copyright (c) TestingBot
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ from testingbotclient import TestingBotClient
4545
class TestTestingBotClient(unittest.TestCase):
4646

4747
def setUp(self):
48-
desired_cap = {'platform': 'Windows', 'browserName': 'firefox', 'version': '35' }
48+
desired_cap = {'platform': 'Windows', 'browserName': 'firefox', 'version': 'latest' }
4949

5050
self.driver = webdriver.Remote(
5151
command_executor='http://key:[email protected]/wd/hub',
@@ -69,7 +69,7 @@ if __name__ == '__main__':
6969
unittest.main()
7070
```
7171

72-
For more information on running Selenium RC/WebDriver tests with Python, please see [Python WebDriver Examples](http://testingbot.com/support/getting-started/python.html)
72+
For more information on running Selenium RC/WebDriver tests with Python, please see [Python WebDriver Examples](https://testingbot.com/support/getting-started/python.html)
7373

7474

7575
## More documentation

testingbotclient.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
import json
66
import os
7-
__version__ = '0.0.4'
7+
__version__ = '0.0.5'
88

99
is_py2 = sys.version_info[0] is 2
1010

@@ -66,10 +66,7 @@ def request(self, method, url, body=None):
6666

6767
def get_encoded_auth_string(self):
6868
auth_info = '%s:%s' % (self.testingbotKey, self.testingbotSecret)
69-
if is_py2:
70-
base64string = base64.b64encode(auth_info)[:-1]
71-
else:
72-
base64string = base64.b64encode(auth_info.encode(encoding='UTF-8')).decode(encoding='UTF-8')
69+
base64string = base64.b64encode(auth_info.encode(encoding='UTF-8')).decode(encoding='UTF-8')
7370
return base64string
7471

7572

0 commit comments

Comments
 (0)