Skip to content

Commit

Permalink
test: Avoid circular import in Azure test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealFalcon committed May 10, 2024
1 parent 81337ea commit 907957b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unittests/reporting/test_reporting_hyperv.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
from cloudinit import util
from cloudinit.reporting import events, instantiated_handler_registry
from cloudinit.reporting.handlers import HyperVKvpReportingHandler

# TODO: Importing `errors` here is a hack to avoid a circular import.
# Without it, we have a azure->errors->identity->azure import loop, but
# long term we should restructure these modules to avoid the issue.
from cloudinit.sources.azure import errors # noqa: F401
from cloudinit.sources.helpers import azure
from tests.unittests.helpers import CiTestCase

Expand Down

0 comments on commit 907957b

Please sign in to comment.