Files
chia-blockchain/chia/_tests/tools/test_full_sync.py
6050235bdb [CHIA-3043] Add (hopefully) non-controversial ruff rules (#19684)
* 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>
2025-06-11 08:36:08 -07:00

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,
)
)