Fix CI issues: remove unused imports in test files and update CI workflow to only check project-specific files
Some checks failed
CI / test (push) Has been cancelled
Some checks failed
CI / test (push) Has been cancelled
This commit is contained in:
@@ -1,9 +1,4 @@
|
|||||||
import pytest
|
from shell_history_search.core import SearchEngine, SearchResult
|
||||||
from unittest.mock import MagicMock, patch
|
|
||||||
import numpy as np
|
|
||||||
import sqlite3
|
|
||||||
|
|
||||||
from shell_history_search.core import SearchEngine, SearchResult, IndexingService
|
|
||||||
from shell_history_search.db import init_database
|
from shell_history_search.db import init_database
|
||||||
|
|
||||||
|
|
||||||
@@ -54,4 +49,4 @@ class TestSearchResult:
|
|||||||
assert result.shell_type == "bash"
|
assert result.shell_type == "bash"
|
||||||
assert result.timestamp == 1700000000
|
assert result.timestamp == 1700000000
|
||||||
assert result.similarity == 0.95
|
assert result.similarity == 0.95
|
||||||
assert result.command_id == 1
|
assert result.command_id == 1
|
||||||
|
|||||||
Reference in New Issue
Block a user