Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Kudriashev committed Jul 23, 2018
1 parent 8509e77 commit fdeaf8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/allow_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_proxies_docstring(self):
allow(subject).method_with_doc

assert subject.method_with_doc.__doc__ == (
"""A basic method of OldStyleUser to illustrate existance of a docstring"""
"""A basic method of OldStyleUser to illustrate existence of a docstring"""
)

def test_proxies_name(self):
Expand Down
2 changes: 1 addition & 1 deletion test/class_double_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_satisfied_exception(self, test_class):

@mark.parametrize('test_class', TEST_CLASSES[0:2])
class TestUserOnly(object):
"""Test using the constructor on a class witha custom __init__"""
"""Test using the constructor on a class with a custom __init__"""

def test_called_with_wrong_args(self, test_class):
TestClass = ClassDouble(test_class)
Expand Down
6 changes: 3 additions & 3 deletions test/partial_double_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,18 +384,18 @@ def test_decorated_function_that_returns_a_callable(self):

assert doubles.testing.decorated_function('bob barker') == 'foo'

def test_varibale_that_points_to_class_method(self):
def test_variable_that_points_to_class_method(self):
allow(doubles.testing).class_method.and_return('foo')

assert doubles.testing.class_method('bob barker') == 'foo'

def test_varibale_that_points_to_instance_method(self):
def test_variable_that_points_to_instance_method(self):
allow(doubles.testing).instance_method.and_return('foo')

assert doubles.testing.instance_method() == 'foo'


class TestClassWithGetAtter(object):
class TestClassWithGetAttr(object):
def test_can_allow_an_existing_method(self):
test_obj = doubles.testing.ClassWithGetAttr()
allow(test_obj).method.and_return('foobar')
Expand Down

0 comments on commit fdeaf8a

Please sign in to comment.