Skip to content

Commit

Permalink
Fix all spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
skudriashev committed Jul 23, 2018
1 parent b67baab commit 8509e77
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions doubles/allowance.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def and_return_result_of(self, return_value):
def is_satisfied(self):
"""Returns a boolean indicating whether or not the double has been satisfied.
Stubs are always satisfied, but mocks are only satisifed if they've been
Stubs are always satisfied, but mocks are only satisfied if they've been
called as was declared.
:return: Whether or not the double is satisfied.
Expand Down Expand Up @@ -227,7 +227,7 @@ def satisfy_exact_match(self, args, kwargs):
return True

def satisfy_custom_matcher(self, args, kwargs):
"""Return a boolean indicating if the args satisify the stub
"""Return a boolean indicating if the args satisfy the stub
:return: Whether or not the stub accepts the provided arguments.
:rtype: bool
Expand Down
2 changes: 1 addition & 1 deletion doubles/class_double.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __call__(self, *args, **kwargs):
"""Verify arguments and proxy to _doubles__new__
:rtype obj:
:raises VerifyingDoubleArgumentError: If args/kwargs don't match the expected argumenst of
:raises VerifyingDoubleArgumentError: If args/kwargs don't match the expected arguments of
__init__ of the underlying class.
"""
verify_arguments(self._target, '_doubles__new__', args, kwargs)
Expand Down
4 changes: 2 additions & 2 deletions doubles/expectation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def satisfy_exact_match(self, args, kwargs):
def satisfy_custom_matcher(self, args, kwargs):
"""Returns a boolean indicating whether or not the mock will accept the provided arguments.
:param tuple args: A tuple of possition args
:param tuple args: A tuple of position args
:param dict kwargs: A dictionary of keyword args
:return: Whether or not the mock accepts the provided arguments.
:rtype: bool
Expand Down Expand Up @@ -79,7 +79,7 @@ def raise_failure_exception(self):
def is_satisfied(self):
"""
Returns a boolean indicating whether or not the double has been satisfied. Stubs are
always satisfied, but mocks are only satisifed if they've been called as was declared,
always satisfied, but mocks are only satisfied if they've been called as was declared,
or if call is expected not to happen.
:return: Whether or not the double is satisfied.
Expand Down
2 changes: 1 addition & 1 deletion doubles/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def no_builtin_verification():
While inside this context we will ignore errors raised while verifying the
arguments of builtins.
Note: It is impossible to verify the expected arugments of built in functions
Note: It is impossible to verify the expected arguments of built in functions
"""
current_space().skip_builtin_verification = True
yield
Expand Down
2 changes: 1 addition & 1 deletion doubles/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _generate_attrs(self):
return attrs

def hijack_attr(self, attr_name):
"""Hijcak an attribute on the target object.
"""Hijack an attribute on the target object.
Updates the underlying class and delegating the call to the instance.
This allows specially-handled attributes like __call__, __enter__,
Expand Down
2 changes: 1 addition & 1 deletion doubles/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def method_with_positional_arguments(self, foo):
return 'method_with_positional_arguments return value'

def method_with_doc(self):
"""A basic method of OldStyleUser to illustrate existance of a docstring"""
"""A basic method of OldStyleUser to illustrate existence of a docstring"""
return

@property
Expand Down

0 comments on commit 8509e77

Please sign in to comment.