Skip to content

Commit e6e61e1

Browse files
author
Sharoon Thomas
committed
Merge pull request #21 from sharoonthomas/test-env
Use test credentials from travis to prevent abuse
2 parents f470fe5 + 62b8024 commit e6e61e1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
:copyright: (c) 2012 by Openlabs Technologies & Consulting (P) Limited
88
:license: BSD, see LICENSE for more details.
99
"""
10+
import os
1011
import unittest
1112
from microsofttranslator import Translator, TranslateApiException
1213

13-
client_id = "translaterpythonapi"
14-
client_secret = "FLghnwW4LJmNgEG+EZkL8uE+wb7+6tkOS8eejHg3AaI="
14+
client_id = os.environ['CLIENT_ID']
15+
client_secret = os.environ['CLIENT_SECRET']
1516

1617
default_languages = [u'en', u'fr', u'de']
1718

0 commit comments

Comments
 (0)