Skip to content

Commit

Permalink
Fix linting and typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tkilias committed Jan 5, 2024
1 parent 84f1aae commit 439603a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 32 deletions.
3 changes: 1 addition & 2 deletions exasol/itde_manager.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from exasol_integration_test_docker_environment.lib import api # type: ignore
from exasol_integration_test_docker_environment.lib.docker import ContextDockerClient # type: ignore
from exasol_integration_test_docker_environment.lib.docker.container.utils import \
remove_docker_container # type: ignore
from exasol_integration_test_docker_environment.lib.docker.container.utils import remove_docker_container # type: ignore
from exasol_integration_test_docker_environment.lib.docker.networks.utils import remove_docker_networks # type: ignore
from exasol_integration_test_docker_environment.lib.docker.volumes.utils import remove_docker_volumes # type: ignore

Expand Down
36 changes: 18 additions & 18 deletions test/integration/test_itde_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ def test_is_itde_running(secrets):
try:
bring_itde_up(secrets)
itde_running = is_itde_running(secrets)
assert itde_running == True
assert itde_running is True
finally:
remove_itde()


def test_is_not_itde_running(secrets):
remove_itde()
itde_running = is_itde_running(secrets)
assert itde_running == False
assert itde_running is False


def test_take_itde_down(secrets):
Expand All @@ -73,21 +73,21 @@ def test_take_itde_down(secrets):
try:
bring_itde_up(secrets)
take_itde_down(secrets)
assert secrets.get(CONTAINER_NAME_KEY) == None
assert secrets.get(VOLUME_NAME_KEY) == None
assert secrets.get(NETWORK_NAME_KEY) == None
assert secrets.get(AILabConfig.db_host_name.value) == None
assert secrets.get(AILabConfig.bfs_host_name.value) == None
assert secrets.get(AILabConfig.db_user.value) == None
assert secrets.get(AILabConfig.db_password.value) == None
assert secrets.get(AILabConfig.db_encryption.value) == None
assert secrets.get(AILabConfig.db_port.value) == None
assert secrets.get(AILabConfig.bfs_service.value) == None
assert secrets.get(AILabConfig.bfs_bucket.value) == None
assert secrets.get(AILabConfig.bfs_encryption.value) == None
assert secrets.get(AILabConfig.bfs_user.value) == None
assert secrets.get(AILabConfig.bfs_password.value) == None
assert secrets.get(AILabConfig.bfs_port.value) == None
assert secrets.get(CONTAINER_NAME_KEY) is None
assert secrets.get(VOLUME_NAME_KEY) is None
assert secrets.get(NETWORK_NAME_KEY) is None
assert secrets.get(AILabConfig.db_host_name.value) is None
assert secrets.get(AILabConfig.bfs_host_name.value) is None
assert secrets.get(AILabConfig.db_user.value) is None
assert secrets.get(AILabConfig.db_password.value) is None
assert secrets.get(AILabConfig.db_encryption.value) is None
assert secrets.get(AILabConfig.db_port.value) is None
assert secrets.get(AILabConfig.bfs_service.value) is None
assert secrets.get(AILabConfig.bfs_bucket.value) is None
assert secrets.get(AILabConfig.bfs_encryption.value) is None
assert secrets.get(AILabConfig.bfs_user.value) is None
assert secrets.get(AILabConfig.bfs_password.value) is None
assert secrets.get(AILabConfig.bfs_port.value) is None
finally:
remove_itde()

Expand All @@ -99,6 +99,6 @@ def test_take_itde_down_is_not_itde_running(secrets):
bring_itde_up(secrets)
take_itde_down(secrets)
itde_running = is_itde_running(secrets)
assert itde_running == False
assert itde_running is False
finally:
remove_itde()
24 changes: 12 additions & 12 deletions test/unit/test_itde_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ def test_take_itde_down(mock_util1, mock_util2, mock_util3, secrets):
assert secrets.get(CONTAINER_NAME_KEY) is None
assert secrets.get(VOLUME_NAME_KEY) is None
assert secrets.get(NETWORK_NAME_KEY) is None
assert secrets.get(AILabConfig.db_host_name.value) == None
assert secrets.get(AILabConfig.bfs_host_name.value) == None
assert secrets.get(AILabConfig.db_user.value) == None
assert secrets.get(AILabConfig.db_password.value) == None
assert secrets.get(AILabConfig.db_encryption.value) == None
assert secrets.get(AILabConfig.db_port.value) == None
assert secrets.get(AILabConfig.bfs_service.value) == None
assert secrets.get(AILabConfig.bfs_bucket.value) == None
assert secrets.get(AILabConfig.bfs_encryption.value) == None
assert secrets.get(AILabConfig.bfs_user.value) == None
assert secrets.get(AILabConfig.bfs_password.value) == None
assert secrets.get(AILabConfig.bfs_port.value) == None
assert secrets.get(AILabConfig.db_host_name.value) is None
assert secrets.get(AILabConfig.bfs_host_name.value) is None
assert secrets.get(AILabConfig.db_user.value) is None
assert secrets.get(AILabConfig.db_password.value) is None
assert secrets.get(AILabConfig.db_encryption.value) is None
assert secrets.get(AILabConfig.db_port.value) is None
assert secrets.get(AILabConfig.bfs_service.value) is None
assert secrets.get(AILabConfig.bfs_bucket.value) is None
assert secrets.get(AILabConfig.bfs_encryption.value) is None
assert secrets.get(AILabConfig.bfs_user.value) is None
assert secrets.get(AILabConfig.bfs_password.value) is None
assert secrets.get(AILabConfig.bfs_port.value) is None

0 comments on commit 439603a

Please sign in to comment.