226 lines
16 KiB
Plaintext
226 lines
16 KiB
Plaintext
python : C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object
|
|
at 0x000001E71B0563E0>
|
|
所在位置 行:59 字符: 1
|
|
+ python -m pytest tests/test_server_store.py::test_add_message_with_at ...
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : NotSpecified: (C:\Python314\Li...0001E71B0563E0>:String) [], RemoteException
|
|
+ FullyQualifiedErrorId : NativeCommandError
|
|
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B0575B0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28B100>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28B4C0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28B5B0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28B790>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28B880>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28B970>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28BB50>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28BC40>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28BD30>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28BE20>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28B1F0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B28B3D0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B361C60>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B3616C0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B3618A0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B361E40>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B361F30>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B3607C0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B3627A0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B362A70>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B362B60>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B362C50>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B363010>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B363100>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E77FF04F40>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B3604F0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B3632E0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B362F20>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B363D30>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B363F10>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B458040>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B363880>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
C:\Python314\Lib\collections\__init__.py:453: ResourceWarning: unclosed database in <sqlite3.Connection object at 0x000
|
|
001E71B3626B0>
|
|
@classmethod
|
|
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
|
....
|
|
ERROR: Coverage failure: total of 27 is less than fail-under=99
|
|
[100%]
|
|
============================== warnings summary ===============================
|
|
C:\Users\NB-060\AppData\Roaming\Python\Python314\site-packages\fastapi\testclient.py:1
|
|
C:\Users\NB-060\AppData\Roaming\Python\Python314\site-packages\fastapi\testclient.py:1: StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated; install `httpx2` instead.
|
|
from starlette.testclient import TestClient as TestClient # noqa
|
|
|
|
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
|
|
=============================== tests coverage ================================
|
|
_______________ coverage: platform win32, python 3.14.3-final-0 _______________
|
|
|
|
Name Stmts Miss Branch BrPart Cover Missing
|
|
--------------------------------------------------------------------------------------------
|
|
src\genesis\__init__.py 1 0 0 0 100%
|
|
src\genesis\data_models.py 220 0 0 0 100%
|
|
src\genesis\inference\__init__.py 5 0 0 0 100%
|
|
src\genesis\inference\exceptions.py 11 0 0 0 100%
|
|
src\genesis\inference\types.py 38 0 0 0 100%
|
|
src\genesis\impact\existing_system_explorer.py 5 1 0 0 80% 14
|
|
src\genesis\parsers\provenance.py 2 1 0 0 50% 3
|
|
src\genesis\writer\exceptions.py 2 2 0 0 0% 2-5
|
|
src\genesis\eval\__init__.py 3 3 0 0 0% 8-11
|
|
src\genesis\orchestrator\__init__.py 3 3 0 0 0% 6-15
|
|
src\genesis\writer\__init__.py 3 3 0 0 0% 3-7
|
|
src\genesis\parsers\_word_common.py 6 4 0 0 33% 8-11
|
|
src\genesis\parsers\excel_reader.py 12 5 2 0 50% 12-15, 20
|
|
src\genesis\qa\report.py 10 10 0 0 0% 2-15
|
|
src\genesis\parsers\merge_fill.py 15 12 10 0 12% 11-23
|
|
src\genesis\parsers\sheet_detector.py 20 12 14 0 24% 34-37, 41-47, 51
|
|
src\genesis\rag\embeddings.py 24 12 4 0 43% 18-19, 24-34
|
|
src\genesis\parsers\paragraph_splitter.py 17 13 10 0 15% 7, 12-24
|
|
src\genesis\server\hub.py 26 13 8 0 38% 22, 25-27, 30-34, 37-41
|
|
src\genesis\writer\context_builder.py 15 15 2 0 0% 2-37
|
|
src\genesis\chat\intent.py 48 16 20 9 60% 66, 68, 71, 73, 75, 77, 79, 81, 83, 89-102
|
|
src\genesis\writer\renderer.py 16 16 10 0 0% 6-25
|
|
src\genesis\inference\prompt_registry.py 27 17 8 0 29% 14, 18, 27-38, 42, 46-48
|
|
src\genesis\parsers\free_text_extractor.py 22 17 10 0 16% 10-22, 31-45
|
|
src\genesis\eval\golden_set.py 18 18 0 0 0% 7-31
|
|
src\genesis\inference\token.py 26 18 2 0 29% 13-14, 27-30, 35-43, 49-51
|
|
src\genesis\parsers\sheet_nature.py 29 18 12 0 27% 14, 18-21, 25-33, 37-44
|
|
src\genesis\parsers\table_extractor.py 24 19 10 0 15% 12-16, 31-57
|
|
src\genesis\writer\writer_state.py 21 21 6 0 0% 2-28
|
|
src\genesis\parsers\word_template_parser.py 32 22 12 0 23% 24-56
|
|
src\genesis\inference\factory.py 35 23 12 0 26% 25-37, 41-68
|
|
src\genesis\qa\guardrails.py 27 27 6 0 0% 1-56
|
|
src\genesis\qa\validator.py 27 27 2 0 0% 2-53
|
|
src\genesis\rag\store.py 45 27 6 0 35% 11-14, 29-31, 35-43, 46-58, 62-66, 69
|
|
src\genesis\writer\template_mapper.py 27 27 12 0 0% 11-45
|
|
src\genesis\parsers\formatting_detector.py 40 32 20 0 13% 11-23, 27-37, 41-43, 51-57
|
|
src\genesis\parsers\rule_doc_parser.py 45 33 18 0 19% 18-20, 25-31, 38-64
|
|
src\genesis\parsers\source_aggregator.py 48 34 14 0 23% 23-28, 39, 59-93
|
|
src\genesis\rag\impact_rag.py 53 38 26 0 19% 17-27, 36-43, 47-66, 69-72
|
|
src\genesis\state_machine.py 40 40 10 0 0% 1-110
|
|
src\genesis\config.py 132 41 24 0 58% 147-153, 158-164, 169-177, 181-185, 189-197, 212-220, 223
|
|
src\genesis\orchestrator\datagate.py 43 43 10 0 0% 15-121
|
|
src\genesis\inference\client.py 58 45 14 0 18% 47-54, 58, 61, 71-125
|
|
src\genesis\parsers\resolver.py 51 51 20 0 0% 12-96
|
|
src\genesis\writer\language.py 51 51 32 0 0% 13-112
|
|
src\genesis\parsers\excel_parser.py 73 52 28 0 21% 30-114
|
|
src\genesis\qa\qa_loop.py 55 55 10 0 0% 2-77
|
|
src\genesis\writer\orchestrator.py 65 65 20 0 0% 7-113
|
|
src\genesis\server\store.py 183 67 34 2 56% 157, 161-178, 181-183, 192->191, 197-200, 251, 272-305, 340-361, 364-368, 371-373, 376-378, 382
|
|
src\genesis\writer\writer_agent.py 75 75 22 0 0% 6-179
|
|
src\genesis\inference\engine.py 103 81 30 0 17% 49-55, 61, 64-66, 70-74, 78-88, 99-103, 122-146, 162-217
|
|
src\genesis\impact\code_parser.py 128 89 32 0 24% 29, 33, 48-51, 55, 82-111, 115-116, 122-145, 159-160, 170-175, 202-253, 268-273
|
|
src\genesis\orchestrator\task_queue.py 98 98 16 0 0% 12-239
|
|
src\genesis\eval\scorer.py 108 108 18 0 0% 12-220
|
|
src\genesis\writer\models.py 117 117 34 0 0% 2-253
|
|
src\genesis\server\app.py 279 128 26 2 51% 37-39, 103->107, 107->115, 130-134, 137-139, 147, 151, 156, 166-175, 179-181, 185-190, 194-196, 207, 215-219, 223-230, 234-235, 244-247, 254-255, 264-270, 274-276, 280-284, 290-294, 298-300, 304, 308-312, 318-325, 329-333, 337-339, 345-349, 353-356, 360-363, 367-370, 378-388, 399-400, 407-408
|
|
src\genesis\server\service.py 202 130 62 4 30% 92-105, 109-120, 137, 141-147, 155, 160-173, 182->186, 184->186, 192-209, 222-239, 242-248, 253-294, 297-300, 305-327, 330-359, 364-378, 381-383
|
|
src\genesis\writer\docx_injector.py 132 132 66 0 0% 14-204
|
|
src\genesis\chat\agent.py 256 199 70 9 20% 35, 49, 57, 60-65, 68-72, 77-78, 83-114, 122, 124, 126, 128, 130, 132-134, 141-163, 167-179, 182-200, 203-234, 237-259, 262-282, 285-303, 315-320
|
|
--------------------------------------------------------------------------------------------
|
|
TOTAL 3297 2226 834 26 27%
|
|
|
|
5 empty files skipped.
|
|
FAIL Required test coverage of 99.0% not reached. Total coverage: 26.85%
|
|
4 passed, 1 warning in 6.67s
|