Skip to content

Commit

Permalink
chore: Satisfy pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
jamilraichouni committed Oct 7, 2024
1 parent 5b75bb4 commit 2acffc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions capella/download_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ def get_directory_structure(url: str) -> list[str]:
version for version in versions if version.startswith(capella_version)
)

final_url = f"{CAPELLA_INDEX_URL}{capella_archive_path}"
dir_content = get_directory_structure(final_url)
FINAL_URL = f"{CAPELLA_INDEX_URL}{capella_archive_path}"
dir_content = get_directory_structure(FINAL_URL)
archive_name = next(
arch
for arch in dir_content
if arch.endswith("linux-gtk-x86_64.tar.gz")
)
download_url = CAPELLA_DOWNLOAD_URL.format(
DOWNLOAD_URL = CAPELLA_DOWNLOAD_URL.format(
f"{capella_archive_path}{archive_name}"
)

download_response = requests.get(download_url)
download_response = requests.get(DOWNLOAD_URL)
download_response.raise_for_status()
download_path = pathlib.Path("/opt/capella.tar.gz").write_bytes(
download_response.content
Expand Down
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def fixture_init_t4c_server_repo(t4c_ip_addr: str, t4c_http_port: str) -> None:
create_t4c_repository(t4c_ip_addr, t4c_http_port)


# pylint: disable=too-many-positional-arguments
@contextlib.contextmanager
def get_container(
image: str,
Expand Down Expand Up @@ -240,6 +241,9 @@ def get_container(
container.remove()


# pylint: enable=too-many-positional-arguments


def wait_for_container(
container: containers.Container,
wait_for_message: str,
Expand Down

0 comments on commit 2acffc4

Please sign in to comment.