Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere committed Dec 6, 2024
1 parent 48c6381 commit 42ec312
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
from pathlib import Path

import pytest
from dagger import Container
from pipelines.airbyte_ci.connectors.build_image.steps import build_customization, common, manifest_only_connectors
from pipelines.airbyte_ci.connectors.context import ConnectorContext
from pipelines.airbyte_ci.connectors.build_image.steps import build_customization, manifest_only_connectors
from pipelines.consts import BUILD_PLATFORMS
from pipelines.models.steps import StepStatus
from tests.utils import mock_container
Expand Down Expand Up @@ -99,6 +97,12 @@ async def test__run_using_base_image_with_components_file(
return_value=container_built_from_base,
)

mocker.patch.object(
manifest_only_connectors,
"apply_python_development_overrides",
side_effect=mocker.AsyncMock(return_value=container_built_from_base),
)

step = manifest_only_connectors.BuildConnectorImages(test_context_with_connector_with_base_image)

await step._build_connector(all_platforms[0], container_built_from_base)
Expand Down
5 changes: 5 additions & 0 deletions airbyte-ci/connectors/pipelines/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ async def with_exec(self, *args, **kwargs):
def with_file(self, *args, **kwargs):
return self

def with_directory(self, *args, **kwargs):
return self

def with_env_variable(self, *args, **kwargs):
return self

def pick_a_random_connector(
language: ConnectorLanguage = None,
Expand Down

0 comments on commit 42ec312

Please sign in to comment.