Skip to content

Commit

Permalink
pep8 unto thyself
Browse files Browse the repository at this point in the history
  • Loading branch information
Attumm committed Aug 12, 2024
1 parent 74184e6 commit 88a6e87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions examples/example_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

box = Meesee(config)


@box.worker()
def func_a(item, worker_id):
print('func: {}, worker_id: {}, item: {}'.format('func_a', worker_id, item))
Expand Down
8 changes: 4 additions & 4 deletions tests/mock_function_tests.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import redis
import uuid
import json

import unittest

from unittest.mock import patch, MagicMock
from meesee import Meesee, config
from unittest.mock import patch
from meesee import Meesee


class TestWorkerProducerLineCoverage(unittest.TestCase):
def setUp(self):
Expand Down Expand Up @@ -65,5 +64,6 @@ def test_func_none(input_data):

mock_redis_queue.return_value.send.assert_any_call(json.dumps({"key": "test_data"}))


if __name__ == '__main__':
unittest.main()

0 comments on commit 88a6e87

Please sign in to comment.