mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 14:14:22 +01:00
Adds cli unit tests
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import pytest
|
||||
import random
|
||||
|
||||
from cli import DEFAULT_CONF
|
||||
|
||||
from common.config_loader import ConfigLoader
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def prng_seed():
|
||||
@@ -11,3 +15,10 @@ def get_random_value_hex(nbytes):
|
||||
pseudo_random_value = random.getrandbits(8 * nbytes)
|
||||
prv_hex = "{:x}".format(pseudo_random_value)
|
||||
return prv_hex.zfill(2 * nbytes)
|
||||
|
||||
|
||||
def get_config():
|
||||
config_loader = ConfigLoader(".", "teos_cli.conf", DEFAULT_CONF, {})
|
||||
config = config_loader.build_config()
|
||||
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user