Skip to content

Commit

Permalink
fix up test_ota_client
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Oct 23, 2024
1 parent 1369a5b commit a7030d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_otaclient/test_ota_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@
from tests.utils import SlotMeta


@pytest.fixture(autouse=True, scope="module")
def mock_certs_dir(module_mocker: pytest_mock.MockerFixture):
"""Mock to use the certs from the OTA test base image."""
from otaclient.app.ota_client import cfg as _cfg

module_mocker.patch.object(
_cfg,
"CERTS_DIR",
cfg.CERTS_DIR,
)


class TestOTAUpdater:
"""
NOTE: the boot_control and create_standby are mocked, only testing
Expand Down

0 comments on commit a7030d2

Please sign in to comment.