mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-08 23:38:49 +00:00
Merge pull request #820 from PR0M3TH3AN/codex/add-post-install-python-check
Run CLI import check after pip install
This commit is contained in:
@@ -188,6 +188,11 @@ main() {
|
|||||||
else
|
else
|
||||||
pip install -e .
|
pip install -e .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! "$VENV_DIR/bin/python" -c "import seedpass.cli; print('ok')"; then
|
||||||
|
print_error "SeedPass CLI import check failed."
|
||||||
|
fi
|
||||||
|
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
# 7. Create launcher script
|
# 7. Create launcher script
|
||||||
|
@@ -46,7 +46,7 @@ def test_bip85_cache_benchmark():
|
|||||||
for _ in range(3):
|
for _ in range(3):
|
||||||
pm.get_bip85_entropy(32, 1)
|
pm.get_bip85_entropy(32, 1)
|
||||||
cached_time = time.perf_counter() - start
|
cached_time = time.perf_counter() - start
|
||||||
|
# Ensure caching avoids redundant derive calls without relying on
|
||||||
assert cached_time < uncached_time
|
# potentially flaky timing comparisons across platforms.
|
||||||
assert slow_uncached.calls == 3
|
assert slow_uncached.calls == 3
|
||||||
assert slow_cached.calls == 1
|
assert slow_cached.calls == 1
|
||||||
|
Reference in New Issue
Block a user