Files
Remote-Terminal-for-MeshCore/tests/conftest.py
2026-01-14 20:08:41 -08:00

18 lines
393 B
Python

"""Pytest configuration and shared fixtures."""
import pytest
@pytest.fixture
def sample_channel_key():
"""A sample 16-byte channel key for testing."""
return bytes.fromhex("0123456789abcdef0123456789abcdef")
@pytest.fixture
def sample_hashtag_key():
"""A channel key derived from hashtag name '#test'."""
import hashlib
return hashlib.sha256(b"#test").digest()[:16]