mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-29 18:14:26 -05:00
* Add (hopefully) non-controversial ruff rules * mypy-exclusions.txt * PIE * Fix pre-commit? * PYI * RSE * S + ignores * Whitespace fix * Re-add build-init-files.py * Add comment about security ignores * Update mypy-exclusions.txt Co-authored-by: Kyle Altendorf <sda@fstab.net> * Fix the executable status of build-init-files.py * Set executable bit for tools/run_block.py and readd shebang * Fix new errors --------- Co-authored-by: Kyle Altendorf <sda@fstab.net>
29 lines
690 B
Python
29 lines
690 B
Python
from __future__ import annotations
|
|
|
|
import asyncio
|
|
import os
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from chia._tests.util.full_sync import run_sync_test
|
|
|
|
|
|
@pytest.mark.parametrize("keep_up", [True, False])
|
|
def test_full_sync_test(keep_up: bool) -> None:
|
|
file_path = os.path.realpath(__file__)
|
|
db_file = Path(file_path).parent / "test-blockchain-db.sqlite"
|
|
asyncio.run(
|
|
run_sync_test(
|
|
db_file,
|
|
db_version=2,
|
|
profile=False,
|
|
single_thread=False,
|
|
test_constants=False,
|
|
keep_up=keep_up,
|
|
db_sync="off",
|
|
node_profiler=False,
|
|
start_at_checkpoint=None,
|
|
)
|
|
)
|