mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-07 09:13:04 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""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]
|
||||
Reference in New Issue
Block a user