8000 don't need expecter anymore! · Lukasa/github3.py@f56126a · GitHub
[go: up one dir, main page]

Skip to content

Commit f56126a

Browse files
committed
don't need expecter anymore!
1 parent b8120c3 commit f56126a

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

tests/utils.py

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import contextlib
21
import requests
32
import github3
4-
import expecter
53
import json
64
import sys
75
from mock import patch
@@ -22,41 +20,6 @@ def path(name, mode='r'):
2220
return open('tests/json/{0}'.format(name), mode)
2321

2422

25-
class CustomExpecter(expecter.expect):
26-
def is_not_None(self):
27-
assert self._actual is not None, (
28-
'Expected anything but None but got it.'
29-
)
30-
31-
def is_None(self):
32-
assert self._actual is None, (
33-
'Expected None but got %s' % repr(self._actual) # nopep8
34-
)
35-
36-
def is_True(self):
37-
assert self._actual is True, (
38-
'Expected True but got %s' % repr(self._actual) # nopep8
39-
)
40-
41-
def is_False(self):
42-
assert self._actual is False, (
43-
'Expected False but got %s' % repr(self._actual) # nopep8
44-
)
45-
46-
def is_in(self, iterable):
47-
assert self._actual in iterable, (
48-
"Expected %s in %s but it wasn't" % (
49-
repr(self._actual), repr(iterable)
50-
)
51-
)
52-
53-
@classmethod
54-
def githuberror(cls):
55-
return cls.raises(github3.GitHubError)
56-
57-
expect = CustomExpecter
58-
59-
6023
class BaseCase(TestCase):
6124
github_url = 'https://api.github.com/'
6225

0 commit comments

Comments
 (0)
0