Skip to content

Commit 352c62f

Browse files
committed
Remove unused code
1 parent 1e38181 commit 352c62f

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dishka-rq"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = "Dishka integration for RQ."
55
readme = "README.md"
66
authors = [

src/dishka_rq/rq_integration.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ def inject(func: Callable[P, T]) -> Callable[P, T]:
109109
def setup_dishka(worker: Worker, container: Container):
110110
worker_klass = worker.__class__
111111

112-
# if getattr(worker_klass, "_dishka_patched", False):
113-
# return
114-
115112
old_perform_job = worker_klass.perform_job
116113
old_teardown = worker_klass.teardown
117114

@@ -128,7 +125,5 @@ def dishka_patched_teardown():
128125
container.close()
129126
old_teardown(worker)
130127

131-
# worker_klass.perform_job = dishka_patched_perform_job
132-
# worker_klass.teardown = dishka_patched_teardown
133128
worker.perform_job = dishka_patched_perform_job
134129
worker.teardown = dishka_patched_teardown

tests/unit/test_dishka_worker.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,3 @@ def test_perform_request_job(
180180

181181
worker.teardown()
182182
app_provider.app_released.assert_called()
183-
184-
185-
# def test_dependency_missing(
186-
# worker: DishkaWorker,
187-
# fake_redis_conn: FakeStrictRedis,
188-
# ):
189-
# """Should not add missing dependency to function."""
190-
# queue = Queue(connection=fake_redis_conn)
191-
# job = queue.enqueue(job_with_missing_dep)
192-
193-
# worker.perform_job(job, queue)

tests/unit/test_inject_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
pytestmark = pytest.mark.filterwarnings("ignore:CLIENT SETNAME")
1818

1919

20-
@pytest.fixture # (scope="session")
20+
@pytest.fixture
2121
def redis():
2222
redis = FakeStrictRedis()
2323
yield redis

0 commit comments

Comments
 (0)