Skip to content

Commit 7afb231

Browse files
committed
update fixtures
1 parent 34a83f5 commit 7afb231

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,16 @@
4949
from node_cli.utils.global_config import generate_g_config_file
5050
from node_cli.utils.node_type import NodeMode
5151
from tests.fixtures.settings import ( # noqa: F401
52+
INTERNAL_FAIR_ACTIVE,
53+
INTERNAL_FAIR_PASSIVE,
54+
INTERNAL_SKALE_ACTIVE,
55+
INTERNAL_SKALE_PASSIVE,
56+
NODE_FAIR_ACTIVE,
57+
NODE_FAIR_PASSIVE,
58+
NODE_SKALE_ACTIVE,
59+
NODE_SKALE_PASSIVE,
5260
_cleanup_settings,
61+
_write_settings,
5362
fair_active_settings,
5463
fair_passive_settings,
5564
skale_active_settings,
@@ -357,6 +366,7 @@ def set_env_var(name, value):
357366
@pytest.fixture
358367
def regular_user_conf(tmp_path):
359368
test_env_path = pathlib.Path(tmp_path / 'test-env')
369+
_write_settings(INTERNAL_SKALE_ACTIVE, NODE_SKALE_ACTIVE)
360370
try:
361371
test_env = """
362372
ENDPOINT=http://localhost:8545
@@ -380,6 +390,7 @@ def regular_user_conf(tmp_path):
380390
@pytest.fixture
381391
def fair_user_conf(tmp_path):
382392
test_env_path = pathlib.Path(tmp_path / 'test-env')
393+
_write_settings(INTERNAL_FAIR_ACTIVE, NODE_FAIR_ACTIVE)
383394
try:
384395
test_env = """
385396
ENDPOINT=http://localhost:8545
@@ -402,6 +413,7 @@ def fair_user_conf(tmp_path):
402413
@pytest.fixture
403414
def fair_boot_user_conf(tmp_path):
404415
test_env_path = pathlib.Path(tmp_path / 'test-env')
416+
_write_settings(INTERNAL_FAIR_ACTIVE, NODE_FAIR_ACTIVE)
405417
try:
406418
test_env = """
407419
ENDPOINT=http://localhost:8545
@@ -423,6 +435,7 @@ def fair_boot_user_conf(tmp_path):
423435
@pytest.fixture
424436
def fair_passive_user_conf(tmp_path):
425437
test_env_path = pathlib.Path(tmp_path / 'test-env')
438+
_write_settings(INTERNAL_FAIR_PASSIVE, NODE_FAIR_PASSIVE)
426439
try:
427440
test_env = """
428441
ENDPOINT=http://localhost:8545
@@ -444,6 +457,7 @@ def fair_passive_user_conf(tmp_path):
444457
@pytest.fixture
445458
def passive_user_conf(tmp_path):
446459
test_env_path = pathlib.Path(tmp_path / 'test-env')
460+
_write_settings(INTERNAL_SKALE_PASSIVE, NODE_SKALE_PASSIVE)
447461
try:
448462
test_env = """
449463
ENDPOINT=http://localhost:8545

0 commit comments

Comments
 (0)