Skip to content

Commit

Permalink
tests: Update discovery client to use false assertion instead of ~
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikram Avudaiappan committed Jul 27, 2023
1 parent f280a25 commit 9a090b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_discovery_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test___discovery_service_available___unregister_non_registered_service___unr
):
unregistration_success_flag = discovery_client.unregister_service()

assert ~unregistration_success_flag # False
assert unregistration_success_flag is False


def test___discovery_service_unavailable___register_service_registration_failure(
Expand All @@ -89,7 +89,7 @@ def test___discovery_service_unavailable___register_service_registration_failure

unregistration_success_flag = discovery_client.unregister_service()

assert ~unregistration_success_flag # False
assert unregistration_success_flag is False


def test___get_discovery_service_address___start_service_jit___returns_expected_value(
Expand Down Expand Up @@ -192,7 +192,7 @@ def test___discovery_service_exe_unavailable___register_service___registration_f
_TEST_SERVICE_PORT, _TEST_SERVICE_INFO, _TEST_MEASUREMENT_INFO
)

assert ~registration_success_flag
assert registration_success_flag is False


@pytest.fixture
Expand Down

0 comments on commit 9a090b3

Please sign in to comment.