mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 22:24:23 +01:00
Apply requested changes
- Adds a PRG based on a hardcoded seed to make the tests reproducible (get_random_value_hex) - Updates all the tests replacing urandom for get_random_value_hex - Properly places misplaced bitcoin_cli in bitcoin_sim_tests - Typos
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
from os import urandom
|
||||
from pytest import fixture
|
||||
|
||||
from pisa.appointment import Appointment
|
||||
from pisa.encrypted_blob import EncryptedBlob
|
||||
from test.unit.conftest import get_random_value_hex
|
||||
|
||||
|
||||
# Not much to test here, adding it for completeness
|
||||
|
||||
@fixture
|
||||
def appointment_data():
|
||||
locator = urandom(32).hex()
|
||||
locator = get_random_value_hex(32)
|
||||
start_time = 100
|
||||
end_time = 120
|
||||
dispute_delta = 20
|
||||
encrypted_blob_data = urandom(100).hex()
|
||||
encrypted_blob_data = get_random_value_hex(100)
|
||||
cipher = "AES-GCM-128"
|
||||
hash_function = "SHA256"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user