Skip to content

Commit

Permalink
Added test_base.py::test_celery_test_node::test_eq_opertor_not_eq()
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Oct 25, 2023
1 parent de0bd98 commit 81f4570
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/unit/api/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 81f4570

Please sign in to comment.