mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-09 15:58:48 +00:00
Merge pull request #135 from PR0M3TH3AN/codex/update-readme-with-test-run-instructions
Add nostr index size test instructions
This commit is contained in:
14
README.md
14
README.md
@@ -231,11 +231,25 @@ Back in the Settings menu you can:
|
|||||||
|
|
||||||
SeedPass includes a small suite of unit tests located under `src/tests`. After activating your virtual environment and installing dependencies, run the tests with **pytest**. Use `-vv` to see INFO-level log messages from each passing test:
|
SeedPass includes a small suite of unit tests located under `src/tests`. After activating your virtual environment and installing dependencies, run the tests with **pytest**. Use `-vv` to see INFO-level log messages from each passing test:
|
||||||
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -r src/requirements.txt
|
pip install -r src/requirements.txt
|
||||||
pytest -vv
|
pytest -vv
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Exploring Nostr Index Size Limits
|
||||||
|
|
||||||
|
The `test_nostr_index_size.py` test probes how large the encrypted index can
|
||||||
|
be when posted to Nostr. It requires network access and is tagged with
|
||||||
|
`desktop` and `network`, so run it manually when you want to measure payload
|
||||||
|
limits:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pytest -vv src/tests/test_nostr_index_size.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Add `-m "desktop and network"` if you normally exclude those markers.
|
||||||
|
|
||||||
### Automatically Updating the Script Checksum
|
### Automatically Updating the Script Checksum
|
||||||
|
|
||||||
SeedPass stores a SHA-256 checksum for the main program in `~/.seedpass/seedpass_script_checksum.txt`.
|
SeedPass stores a SHA-256 checksum for the main program in `~/.seedpass/seedpass_script_checksum.txt`.
|
||||||
|
Reference in New Issue
Block a user