2022-12-11 14:02:55 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import logging
|
|
|
|
|
2022-12-17 14:39:42 +00:00
|
|
|
from pathlib import Path
|
2022-12-11 14:02:55 +00:00
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
2023-01-22 15:12:33 +00:00
|
|
|
from skynet.db import open_new_database
|
2023-05-22 09:10:51 +00:00
|
|
|
from skynet.nodeos import open_nodeos
|
2022-12-11 14:02:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope='session')
|
2023-05-22 09:10:51 +00:00
|
|
|
def postgres_db():
|
2023-01-22 15:12:33 +00:00
|
|
|
with open_new_database() as db_params:
|
|
|
|
yield db_params
|
2022-12-11 14:02:55 +00:00
|
|
|
|
2023-05-22 09:10:51 +00:00
|
|
|
@pytest.fixture(scope='session')
|
|
|
|
def cleos():
|
|
|
|
with open_nodeos() as cli:
|
|
|
|
yield cli
|