cortex-local 2.3.3__tar.gz → 2.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cortex_local-2.3.3 → cortex_local-2.3.5}/PKG-INFO +1 -1
- cortex_local-2.3.5/tests/test_imports.py +56 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/README.md +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/__init__.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/cli.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/config.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/__init__.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/cache.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/chunker.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/code_graph.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/formatters.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/global_graph.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/graph.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/notes_graph.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/roslyn_analyzer.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/roslyn_tool/CortexAnalyzer.csproj +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/core/roslyn_tool/Program.cs +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/embedder.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/indexer.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/mcp_server.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/state.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/cortex/watcher.py +0 -0
- {cortex_local-2.3.3 → cortex_local-2.3.5}/pyproject.toml +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"""Smoke tests — validate local package imports and critical instantiations before PyPI publish."""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def test_mcp_import():
|
|
7
|
+
from mcp.server.mcpserver import MCPServer
|
|
8
|
+
assert MCPServer is not None
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def test_mcp_instantiation():
|
|
12
|
+
from mcp.server.mcpserver import MCPServer
|
|
13
|
+
mcp = MCPServer("cortex-test")
|
|
14
|
+
assert mcp is not None
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def test_qdrant_client_import():
|
|
18
|
+
from qdrant_client import QdrantClient
|
|
19
|
+
assert QdrantClient is not None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def test_fastembed_import():
|
|
23
|
+
from fastembed import TextEmbedding
|
|
24
|
+
assert TextEmbedding is not None
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def test_click_import():
|
|
28
|
+
import click
|
|
29
|
+
assert click is not None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def test_mcp_server_module():
|
|
33
|
+
from cortex.mcp_server import mcp
|
|
34
|
+
assert mcp is not None
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def test_cli_module():
|
|
38
|
+
from cortex.cli import cli
|
|
39
|
+
assert cli is not None
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
if __name__ == "__main__":
|
|
43
|
+
import traceback
|
|
44
|
+
tests = [v for k, v in list(globals().items()) if k.startswith("test_")]
|
|
45
|
+
passed = failed = 0
|
|
46
|
+
for t in tests:
|
|
47
|
+
try:
|
|
48
|
+
t()
|
|
49
|
+
print(f" ok {t.__name__}")
|
|
50
|
+
passed += 1
|
|
51
|
+
except Exception:
|
|
52
|
+
print(f" FAIL {t.__name__}")
|
|
53
|
+
traceback.print_exc()
|
|
54
|
+
failed += 1
|
|
55
|
+
print(f"\n{passed} passed, {failed} failed")
|
|
56
|
+
sys.exit(1 if failed else 0)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|