From 81f45701af1b6cea749b2ba79657e074aa6265d2 Mon Sep 17 00:00:00 2001 From: Tomer Nosrati Date: Wed, 25 Oct 2023 21:14:56 +0300 Subject: [PATCH] Added test_base.py::test_celery_test_node::test_eq_opertor_not_eq() --- tests/unit/api/test_base.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/unit/api/test_base.py b/tests/unit/api/test_base.py index d8bcb589..caf26a43 100644 --- a/tests/unit/api/test_base.py +++ b/tests/unit/api/test_base.py @@ -27,12 +27,18 @@ def test_app(self, mocked_test_container: CeleryTestContainer): node = CeleryTestNode(mocked_test_container, expected_app) assert node.app is expected_app - def test_eq_opertor(self, mocked_test_container: CeleryTestContainer): + def test_eq_opertor_eq(self, mocked_test_container: CeleryTestContainer): node1 = CeleryTestNode(mocked_test_container) node2 = CeleryTestNode(mocked_test_container) assert node1 == node2 assert node1 is not node2 + def test_eq_opertor_not_eq(self, mocked_test_container: CeleryTestContainer): + node1 = CeleryTestNode(mocked_test_container) + node2 = CeleryTestNode(mocked_container(CeleryTestContainer)) + assert node1 != node2 + assert node1 is not node2 + def test_container(self, node: CeleryTestNode): assert node.container is not None