File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 11language : python
22python :
3- - 2.6
4- - 2.7
5- - 3.2
6- - 3.3
3+ - 2.6
4+ - 2.7
5+ - 3.2
6+ - 3.3
77install :
8- - if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install --use-mirrors importlib unittest2; fi
9- - pip install -r requirements.txt
10- - pip install -r test-requirements.txt
11- - python setup.py develop
12- script :
13- - nosetests
8+ - if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install importlib unittest2; fi
9+ - pip install -r requirements.txt
10+ - pip install -r test-requirements.txt
11+ - python setup.py develop
12+ script :
13+ - nosetests
14+ env :
15+ global :
16+ secure : OEf+n4gbaDOfj7kqVjA3sjkIYtIsfEv6K2/5RejYxMoaAHEOR5r79HatWa4D2gmJxNZa+Biro6aep17opbBhMY3FAB/RK9dqW966YMpiOIgI5CF6lQeleOik61ByFYgJgp6S4pNS0wD9hOSN42sK0AX4f67m7KlsTAyFkV7ZgQo=
Original file line number Diff line number Diff line change 33from . import utils
44from nose .tools import *
55import detectlanguage
6+ import os
67
78class TestApi (utils .TestCase ):
89 def setUp (self ):
9- detectlanguage .configuration .api_key = '93dfb956a294140a4370a09584af2ef6'
10+ detectlanguage .configuration .api_key = os . environ [ 'DETECTLANGUAGE_API_KEY' ]
1011
1112 def test_simple_detect (self ):
1213 result = detectlanguage .simple_detect ("Hello world" )
You can’t perform that action at this time.
0 commit comments