-
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from medecau/update-tests
Update tests
- Loading branch information
Showing
10 changed files
with
54 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
sudo: false | ||
language: python | ||
env: | ||
- REQUESTS_VERSION=2.1.0 | ||
- REQUESTS_VERSION=2.8.1 | ||
- REQUESTS_VERSION=2.9.1 | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
install: | ||
- if [[ $TRAVIS_PYTHON_VERSION == 2.6* ]]; then export PYTEST_ADDOPTS='-p no:pylint'; fi | ||
- pip install -r requirements.txt | ||
- pip install --upgrade --force-reinstall requests==$REQUESTS_VERSION | ||
script: py.test | ||
- TOXENV=py27-requests-current | ||
- TOXENV=py33-requests-current | ||
- TOXENV=py34-requests-current | ||
- TOXENV=py35-requests-current | ||
- TOXENV=py35-requests-2.1.0 | ||
- TOXENV=py35-requests-2.8.1 | ||
- TOXENV=py35-requests-2.9.1 | ||
- TOXENV=pypy-requests-current | ||
- TOXENV=codestyle | ||
python: 3.5 | ||
install: pip install tox | ||
script: tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,7 +186,7 @@ def test_result_as_dict(): | |
"http://admin:[email protected]:666" | ||
"/secret/admin/interface?param1=42" | ||
) | ||
expected_dict = {'subdomain' : 'www', | ||
'domain' : 'google', | ||
'suffix' : 'com'} | ||
expected_dict = {'subdomain': 'www', | ||
'domain': 'google', | ||
'suffix': 'com'} | ||
assert result._asdict() == expected_dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
[tox] | ||
envlist = py26, py27, py33, py34, py35, pypy | ||
envlist = py{27,33,34,35,py}-requests-{current,2.1.0,2.8.1,2.9.1},codestyle | ||
|
||
[testenv] | ||
deps = | ||
pylint | ||
pytest | ||
pytest-gitignore | ||
pytest-mock | ||
pytest-pylint | ||
|
||
py{27,33,34,35,py}-requests-current: requests | ||
py{27,33,34,35,py}-requests-2.1.0: requests==2.1.0 | ||
py{27,33,34,35,py}-requests-2.8.1: requests==2.8.1 | ||
py{27,33,34,35,py}-requests-2.9.1: requests==2.9.1 | ||
|
||
commands = py.test | ||
deps = -rrequirements.txt | ||
|
||
[testenv:codestyle] | ||
deps = pycodestyle | ||
# E501 - line too long | ||
commands = pycodestyle tldextract tldextract_app tests --ignore=E501 |