mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(bt): reorder test imports to satisfy pre-commit
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
Verifies that FormatToken.conv_char and FormatToken.length are used correctly
|
||||
to determine ARG_SIZE_TYPE (the fix for the off-by-one bug).
|
||||
"""
|
||||
|
||||
import re
|
||||
import shutil
|
||||
import tempfile
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""Tests for LogDBManager: state persistence, incremental logic, file tracking."""
|
||||
|
||||
import shutil
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""Tests for c_format_parse.py: FormatToken NamedTuple and parse_format_string."""
|
||||
|
||||
import unittest
|
||||
|
||||
import test_utils # noqa: F401 — must be first to set up sys.path
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""Tests for incremental compression: caching, re-runs, config changes."""
|
||||
|
||||
import shutil
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""Tests for LogCompressor.extract_log_calls: tree-sitter AST extraction."""
|
||||
|
||||
import unittest
|
||||
|
||||
import test_utils # noqa: F401 — must be first to set up sys.path
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""Tests for compressed macro generation (bluedroid and mesh module scripts)."""
|
||||
|
||||
import sys
|
||||
import types
|
||||
import unittest
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""End-to-end pipeline tests: .c input -> .h output with golden file comparison."""
|
||||
|
||||
import re
|
||||
import shutil
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from test_utils import assert_header_matches_golden
|
||||
from test_utils import FIXTURE_DIR
|
||||
from test_utils import PipelineContext
|
||||
from test_utils import assert_header_matches_golden
|
||||
|
||||
|
||||
class _E2ETestCase(unittest.TestCase):
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""Shared utilities for BLE log compression tests (unittest-based, no third-party deps)."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import difflib
|
||||
|
||||
@@ -11,7 +11,6 @@ This runs the compression pipeline on each fixture C source file and copies
|
||||
the generated header to fixtures/expected/. The output should be reviewed
|
||||
for correctness before committing.
|
||||
"""
|
||||
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
Reference in New Issue
Block a user