Skip to content

Commit

Permalink
Merge pull request #3 from ulamlabs/fixtest
Browse files Browse the repository at this point in the history
fix test
  • Loading branch information
maiiku authored Oct 14, 2020
2 parents 7609ad9 + d63b596 commit a3944ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ target/

# IDE
.idea/

# MacOS
.DS_Store
3 changes: 2 additions & 1 deletion celery_mock/celery_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def __enter__(self):

def __exit__(self, *exc_info):
self.stop()
_mocked_fn.stop()
if not _mocked_tasks:
_mocked_fn.stop()


def _apply_async(selftask, a=None, kw=None, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "celery-mock"
version = "1.1.5"
version = "1.1.6"
description = "celery-mock allows you to mock celery task and run them when you want"
authors = ["Konrad Rotkiewicz <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit a3944ad

Please sign in to comment.