Skip to content

Commit

Permalink
Merge pull request #16 from fhuertas/pre-1.0.9
Browse files Browse the repository at this point in the history
Update to version 1.0.9
  • Loading branch information
fhuertas authored Nov 15, 2016
2 parents 1d6d6db + bddc35e commit 416ad2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ where <python-version> is the version to test. Note: you must be installed that
**1.0.7**
* FunctionMockCheckCall can return a value instead invoke the function

**1.0.8**
**1.0.9**
* FunctionMockCheckCall now check 0 invocations
* Fix: FunctionMockCheckCall checks if the value to return is None and not a condition
* Fix: the checks in the FunctionMockCheckCall
Expand All @@ -54,7 +54,7 @@ The tests contain examples to use this library but here there are the more usefu

### FunctionMock

This mock replace a function for other. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.8/tests/mock_decorators/test_function_mock.py#L18)
This mock replace a function for other. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.9/tests/mock_decorators/test_function_mock.py#L18)

The parameters are the following:

Expand All @@ -65,7 +65,7 @@ The parameters are the following:

### FunctionMockResult

This mock replace a function for a result value. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.8/tests/mock_decorators/test_function_mock.py#L167)
This mock replace a function for a result value. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.9/tests/mock_decorators/test_function_mock.py#L167)

The parameters are the following:

Expand All @@ -77,7 +77,7 @@ The parameters are the following:
### FunctionMockChangeResult

This mock modify the result of a function. i.e. if Add 2 to a result of a function.
[Example](https://github.com/fhuertas/mock_decorators/blob/1.0.8/tests/mock_decorators/test_function_mock.py#L220)
[Example](https://github.com/fhuertas/mock_decorators/blob/1.0.9/tests/mock_decorators/test_function_mock.py#L220)

The parameters are the following:
* **entity**: The module, class or object where the function is.
Expand All @@ -87,7 +87,7 @@ The parameters are the following:
### FunctionMockCheckCall

This mock modify the result of a function. i.e. if Add 2 to a result of a function.
[Example](https://github.com/fhuertas/mock_decorators/blob/1.0.8/tests/mock_decorators/test_function_mock.py#L18)
[Example](https://github.com/fhuertas/mock_decorators/blob/1.0.9/tests/mock_decorators/test_function_mock.py#L18)

The parameters are the following:
* **entity**: The module, class or object where the function is.
Expand All @@ -97,7 +97,7 @@ The parameters are the following:

## AttributeMock

This mock change the value of a attribute for other. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.8/tests/mock_decorators/test_attribute_mock.py#L8)
This mock change the value of a attribute for other. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.9/tests/mock_decorators/test_attribute_mock.py#L8)

The parameters are the following:

Expand All @@ -108,7 +108,7 @@ The parameters are the following:

## ClassMock

This mock only work in python 3 and higher. This mock replace a class or object by other. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.8/tests/mock_decorators/test_class_mock.py#L24)
This mock only work in python 3 and higher. This mock replace a class or object by other. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.9/tests/mock_decorators/test_class_mock.py#L24)

The parameters are the following:
* **old_class_name**: The original object/class that you can replace
Expand All @@ -117,7 +117,7 @@ The parameters are the following:

## DictMock

This mock replace a value in a map by other value. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.8/tests/mock_decorators/test_dict_mock.py#L7)
This mock replace a value in a map by other value. [Example](https://github.com/fhuertas/mock_decorators/blob/1.0.9/tests/mock_decorators/test_dict_mock.py#L7)

The parameters are the following:
* **entity_dict**: The original dictionary
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.8
1.0.9

0 comments on commit 416ad2a

Please sign in to comment.