mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-03-28 17:43:05 +01:00
18 lines
393 B
Python
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]
|