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
|
Verifies that FormatToken.conv_char and FormatToken.length are used correctly
|
||||||
to determine ARG_SIZE_TYPE (the fix for the off-by-one bug).
|
to determine ARG_SIZE_TYPE (the fix for the off-by-one bug).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
"""Tests for LogDBManager: state persistence, incremental logic, file tracking."""
|
"""Tests for LogDBManager: state persistence, incremental logic, file tracking."""
|
||||||
|
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
"""Tests for c_format_parse.py: FormatToken NamedTuple and parse_format_string."""
|
"""Tests for c_format_parse.py: FormatToken NamedTuple and parse_format_string."""
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import test_utils # noqa: F401 — must be first to set up sys.path
|
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-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
"""Tests for incremental compression: caching, re-runs, config changes."""
|
"""Tests for incremental compression: caching, re-runs, config changes."""
|
||||||
|
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
"""Tests for LogCompressor.extract_log_calls: tree-sitter AST extraction."""
|
"""Tests for LogCompressor.extract_log_calls: tree-sitter AST extraction."""
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import test_utils # noqa: F401 — must be first to set up sys.path
|
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-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
"""Tests for compressed macro generation (bluedroid and mesh module scripts)."""
|
"""Tests for compressed macro generation (bluedroid and mesh module scripts)."""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import types
|
import types
|
||||||
import unittest
|
import unittest
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
"""End-to-end pipeline tests: .c input -> .h output with golden file comparison."""
|
"""End-to-end pipeline tests: .c input -> .h output with golden file comparison."""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
from test_utils import assert_header_matches_golden
|
||||||
from test_utils import FIXTURE_DIR
|
from test_utils import FIXTURE_DIR
|
||||||
from test_utils import PipelineContext
|
from test_utils import PipelineContext
|
||||||
from test_utils import assert_header_matches_golden
|
|
||||||
|
|
||||||
|
|
||||||
class _E2ETestCase(unittest.TestCase):
|
class _E2ETestCase(unittest.TestCase):
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2026 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
"""Shared utilities for BLE log compression tests (unittest-based, no third-party deps)."""
|
"""Shared utilities for BLE log compression tests (unittest-based, no third-party deps)."""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import difflib
|
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
|
the generated header to fixtures/expected/. The output should be reviewed
|
||||||
for correctness before committing.
|
for correctness before committing.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|||||||
Reference in New Issue
Block a user