Merge pull request #9288 from Chia-Network/atari-data_layer_mark

This commit is contained in:
Kyle Altendorf
2021-11-19 09:57:36 -05:00
committed by GitHub
7 changed files with 24 additions and 0 deletions
+5
View File
@@ -2,9 +2,14 @@ from pathlib import Path
from unittest import TestCase
from clvm_tools.clvmc import compile_clvm
import pytest
from chia.types.blockchain_format.program import Program, SerializedProgram
pytestmark = pytest.mark.data_layer
wallet_program_files = set(
[
"chia/wallet/puzzles/calculate_synthetic_public_key.clvm",
+3
View File
@@ -6,6 +6,9 @@ import pytest
from tests.core.data_layer.util import ChiaRoot
pytestmark = pytest.mark.data_layer
@pytest.mark.asyncio
async def test_help(chia_root: ChiaRoot) -> None:
"""Just a trivial test to make sure the subprocessing is at least working and the
+3
View File
@@ -21,6 +21,9 @@ from tests.core.data_layer.util import ChiaRoot
from tests.setup_nodes import setup_simulators_and_wallets, self_hostname
pytestmark = pytest.mark.data_layer
@pytest.fixture(scope="function")
async def wallet_node():
async for _ in setup_simulators_and_wallets(1, 1, {}):
+3
View File
@@ -27,6 +27,9 @@ from tests.core.data_layer.util import add_0123_example, add_01234567_example, E
log = logging.getLogger(__name__)
pytestmark = pytest.mark.data_layer
@pytest.fixture(name="db_connection", scope="function")
async def db_connection_fixture() -> AsyncIterable[aiosqlite.Connection]:
async with aiosqlite.connect(":memory:") as connection:
+2
View File
@@ -3,3 +3,5 @@
log_cli = 1
log_level = WARNING
log_format = %(asctime)s %(name)s: %(levelname)s %(message)s
markers =
data_layer: Mark as a data layer related test.
+5
View File
@@ -1,3 +1,5 @@
import pytest
from chia.wallet.db_wallet.db_wallet_puzzles import (
create_host_fullpuz,
create_offer_fullpuz,
@@ -11,6 +13,9 @@ from chia.types.announcement import Announcement
from chia.wallet.util.merkle_tree import MerkleTree
pytestmark = pytest.mark.data_layer
def test_create_db_report():
innerpuz: Program = Program.to(1)
nodes = [innerpuz.get_tree_hash(), Program.to([8]).get_tree_hash()]
+3
View File
@@ -18,6 +18,9 @@ from chia.wallet.transaction_record import TransactionRecord
from chia.wallet.util.transaction_type import TransactionType
pytestmark = pytest.mark.data_layer
@pytest.fixture(scope="module")
def event_loop():
loop = asyncio.get_event_loop()