Skip to content

Commit 3b85dd5

Browse files
Copilotzkoppert
andcommitted
Fix pylint error: move main import to top level
Co-authored-by: zkoppert <6935431+zkoppert@users.noreply.github.com>
1 parent b40d8e5 commit 3b85dd5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test_case_insensitive_lookup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from pathlib import Path
88
from unittest.mock import MagicMock, patch
99

10-
from measure_innersource import CaseInsensitiveDict
10+
from measure_innersource import CaseInsensitiveDict, main
1111

1212

1313
class TestCaseInsensitiveDict(unittest.TestCase):
@@ -187,9 +187,7 @@ def test_username_lookup_case_insensitive(
187187
try:
188188
os.chdir(tmpdir)
189189

190-
# Import and run main
191-
from measure_innersource import main
192-
190+
# Run main
193191
main()
194192

195193
# Verify that write_to_markdown was called (meaning no KeyError occurred)

0 commit comments

Comments
 (0)