Skip to content

Commit 49319cc

Browse files
author
Barry Morrison and Ian Cordasco
committed
Add unittest 2 && pin dependencies
1 parent c288d9f commit 49319cc

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

github3/structs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ def __init__(self, count, url, cls, session, params=None, etag=None):
1919
self.params = params
2020
self._remove_none(self.params)
2121
# We do not set this from the parameter sent. We want this to
22-
# represent the ETag header returned by GitHub no matter what.
23-
# If this is not None, then it won't be set from the response and
22+
# represent the ETag header returned by GitHub no matter what. # If this is not None, then it won't be set from the response and
2423
# that's not what we want.
2524
#: The ETag Header value returned by GitHub
2625
self.etag = None

requirements.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
requests>=1.2.3
2-
uritemplate.py>=0.2.0
1+
requests==1.2.3
2+
uritemplate.py==0.2.0
33
git+git://github.com/garybernhardt/expecter.git
4-
coverage>=3.5.2
5-
mock>=1.0.0
4+
coverage==3.5.2
5+
mock==1.0.0
66
tox==1.4.3
7-
pytest
7+
pytest==2.3.5
8+
unittest2==0.5.1

tests/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import contextlib
12
import requests
23
import github3
34
import expecter

0 commit comments

Comments
 (0)