Skip to content

Commit

Permalink
Merge 7959778 into 3602b75
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemyslaw Jan Beigert committed Jun 23, 2019
2 parents 3602b75 + 7959778 commit 6cdeb3d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pymonet/immutable_list.py
Expand Up @@ -10,7 +10,7 @@ class ImmutableList(Generic[T]):
Immutable list is data structure that doesn't allow to mutate instances
"""

def __init__(self, head: T=None, tail: 'ImmutableList[T]'=None, is_empty: bool=False) -> None:
def __init__(self, head: T = None, tail: 'ImmutableList[T]' = None, is_empty: bool = False) -> None:
self.head = head
self.tail = tail
self.is_empty = is_empty
Expand Down
18 changes: 9 additions & 9 deletions requirements.txt
@@ -1,15 +1,15 @@
pytest==3.2.3
pytest-mock==1.6.3
pytest==4.6.3
pytest-mock==1.10.4
hypothesis==3.36.0

mypy==0.600
mypy==0.710

flake8==3.5.0
flake8==3.7.7
pydocstyle==2.1.1

pytest-cov==2.5.1
coverage==4.4.2
coveralls==1.2
pytest-cov==2.7.1
coverage==4.5.3
coveralls==1.8.1

sphinx==1.6.5
sphinx_rtd_theme==0.2.4
sphinx==2.1.2
sphinx_rtd_theme==0.4.3
4 changes: 2 additions & 2 deletions tests/test_task.py
Expand Up @@ -150,13 +150,13 @@ def resolved_spy(value):


def test_task_of_should_applied_only_resolve_callback(task_spy):
assert Task.of(42).fork(task_spy.rejected, task_spy.resolved) is 42
assert Task.of(42).fork(task_spy.rejected, task_spy.resolved) == 42
assert task_spy.resolved.call_count == 1
assert task_spy.rejected.call_count == 0


def test_task_of_should_applied_only_reject_callback(task_spy):
assert Task.reject(42).fork(task_spy.rejected, task_spy.resolved) is 42
assert Task.reject(42).fork(task_spy.rejected, task_spy.resolved) == 42
assert task_spy.resolved.call_count == 0
assert task_spy.rejected.call_count == 1

Expand Down

0 comments on commit 6cdeb3d

Please sign in to comment.