Skip to content

Commit 1eee135

Browse files
ianpittwoodclaude
andcommitted
Hoist logging import in oras plugin tests
Move `import logging` from inside the test method to the top-level stdlib imports block, following the project's import policy. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b1e7578 commit 1eee135

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

posit-bakery/test/plugins/builtin/oras/test_oras_plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Tests for the OrasPlugin."""
22

3+
import logging
34
import subprocess
45
from pathlib import Path
56
from unittest.mock import MagicMock, patch
@@ -157,8 +158,6 @@ def test_execute_mixed_targets(self, plugin, mock_target_with_sources, mock_targ
157158

158159
def test_execute_processes_targets_in_push_sort_key_order(self, plugin, caplog):
159160
"""Targets are processed in ascending push_sort_key order, regardless of input order."""
160-
# local: only used by this test for caplog level configuration
161-
import logging
162161

163162
def make_target(name, sort_key):
164163
t = MagicMock(spec=ImageTarget)

0 commit comments

Comments
 (0)