Skip to content

Commit

Permalink
fix: image build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Oct 10, 2023
1 parent bc09d57 commit ed73e9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_autonomy/test_cli/test_build_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# ------------------------------------------------------------------------------

"""Test build image."""
import json

import os
from pathlib import Path
from random import choices
Expand All @@ -34,7 +34,7 @@
from autonomy.configurations.base import Service
from autonomy.constants import DEFAULT_DOCKER_IMAGE_AUTHOR

from tests.conftest import get_file_from_tag, skip_docker_tests
from tests.conftest import skip_docker_tests
from tests.test_autonomy.base import get_dummy_service_config
from tests.test_autonomy.test_cli.base import BaseCliTest

Expand All @@ -59,8 +59,8 @@ def setup(self) -> None:
public_id=PublicId(author="valory", name="test_abci", version="0.1.0"),
)

packages_json = json.loads(get_file_from_tag("packages/packages.json"))
package_hash = packages_json["dev"][self.package_id.to_uri_path]
# TODO: Revert after release
package_hash = "bafybeibe6kgnwkuhcydk5gr3wvsybdlc7gfuzt2ia24czudsvxlbmdlrwe"
self.package_id = self.package_id.with_hash(package_hash=package_hash)

os.chdir(self.t)
Expand Down Expand Up @@ -125,7 +125,7 @@ def test_build_version(
== 1
)

@skip_docker_tests
# @skip_docker_tests
def test_image_author_flag(self) -> None:
"""Test image_author flag."""
test_version = "".join(choices(ascii_letters, k=6)) # nosec
Expand Down Expand Up @@ -193,7 +193,7 @@ def test_service_file_missing(
assert "No such file or directory: " in result.output
assert "service.yaml" in result.output

@skip_docker_tests
# @skip_docker_tests
def test_image_build_fail(self) -> None:
"""Test prod build."""

Expand Down

0 comments on commit ed73e9a

Please sign in to comment.