Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rfc6266
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
rfc6266
Commits
2edeb01c
Commit
2edeb01c
authored
Nov 11, 2013
by
Sebastian Rahlf
Committed by
Gabriel
Nov 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Latest pytest-localserver version supports Python 3.3+
parent
ce949799
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
test_rfc6266.py
+2
-2
tox.ini
+1
-10
No files found.
test_rfc6266.py
View file @
2edeb01c
...
...
@@ -23,7 +23,7 @@ def test_parsing():
assert
cd
.
filename_unsafe
==
u'€ rates'
@pytest.mark.skipif
(
"
sys.version_info >= (3,0
)"
)
@pytest.mark.skipif
(
"
(3,0) <= sys.version_info < (3,3
)"
)
def
test_httplib2
(
httpserver
):
httplib2
=
pytest
.
importorskip
(
'httplib2'
)
http
=
httplib2
.
Http
()
...
...
@@ -33,7 +33,7 @@ def test_httplib2(httpserver):
assert
parse_httplib2_response
(
resp
)
.
filename_unsafe
==
'a b='
@pytest.mark.skipif
(
"
sys.version_info >= (3,0
)"
)
@pytest.mark.skipif
(
"
(3,0) <= sys.version_info < (3,3
)"
)
def
test_requests
(
httpserver
):
requests
=
pytest
.
importorskip
(
'requests'
)
httpserver
.
serve_content
(
'eep'
,
headers
=
{
...
...
tox.ini
View file @
2edeb01c
...
...
@@ -4,22 +4,13 @@ envlist=py27,py26,py32,py33,pypy
[testenv]
deps
=
pytest
pytest-localserver
pytest-localserver
>=0.3
httplib2
requests
commands
=
py.test --pyargs test_rfc6266
[testenv:py32]
# pytest-localserver isn't py3k-compatible;
# httplib2 and requests can't be tested
deps
=
pytest
# Changedir is a hack to prevent test discovery from finding the non-2to3
# source. We want tests to be import-based only.
changedir
=
.tox
[testenv:py33]
deps
=
pytest
changedir
=
.tox
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