Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
553fb910
Commit
553fb910
authored
Feb 15, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use b64encode directly
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
9fdbdef7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
weblate/trans/tests/test_selenium.py
weblate/trans/tests/test_selenium.py
+4
-4
No files found.
weblate/trans/tests/test_selenium.py
View file @
553fb910
...
...
@@ -23,7 +23,7 @@ from unittest import SkipTest
import
time
import
os
import
json
import
base64
from
base64
import
b64encode
from
six.moves.http_client
import
HTTPConnection
import
django
from
django.test
import
LiveServerTestCase
...
...
@@ -103,9 +103,9 @@ class SeleniumTests(LiveServerTestCase, RegistrationTestMixin):
# Use Sauce connect
cls
.
username
=
os
.
environ
[
'SAUCE_USERNAME'
]
cls
.
key
=
os
.
environ
[
'SAUCE_ACCESS_KEY'
]
cls
.
sauce_auth
=
b
ase64
.
encodestring
(
'{}:{}'
.
format
(
cls
.
username
,
cls
.
key
)
)
[:
-
1
]
cls
.
sauce_auth
=
b
64encode
(
'{}:{}'
.
format
(
cls
.
username
,
cls
.
key
)
.
encode
(
'utf-8'
)
)
cls
.
driver
=
webdriver
.
Remote
(
desired_capabilities
=
cls
.
caps
,
command_executor
=
"http://{0}:{1}@{2}/wd/hub"
.
format
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment