Files
infiniflow--ragflow/test/unit_test/test_test_chunk_feedback_package.py
wehub-resource-sync f36e2104d8
tests / ragflow_tests_infinity (push) Has been cancelled
tests / ragflow_tests_elasticsearch (push) Has been cancelled
sep-tests / ragflow_preflight (push) Has been cancelled
sep-tests / ragflow_tests_infinity (push) Has been cancelled
sep-tests / ragflow_tests_elasticsearch (push) Has been cancelled
tests / ragflow_preflight (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:16:49 +08:00

22 lines
545 B
Python

import importlib
import sys
from types import ModuleType
import pytest
pytestmark = pytest.mark.p2
def test_chunk_feedback_package_import_is_safe_when_common_is_shadowed(monkeypatch):
shadow_common = ModuleType("common")
monkeypatch.setitem(sys.modules, "common", shadow_common)
monkeypatch.delitem(
sys.modules,
"test.testcases.test_web_api.test_chunk_feedback",
raising=False,
)
module = importlib.import_module("test.testcases.test_web_api.test_chunk_feedback")
assert module is not None