mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-05 02:24:21 -05:00
* tests: Allow to use custom keys in `BlockTools.new_plot` * tests: Create three plots with `G1Element()` as farmer/pool key But not add them as default plots. Just to have plots in the test cache with different keys from within and outside the keychain for plot loading tests. create * test|github: Bump `test-cache` version to `0.28.0` * plotting: Drop plots from `no_key_filenames` after the keys appeared * plotting: Drop plots from `no_key_filenames` if the plot was removed * tests: Test loading of plots where we miss the keys * plotting: Use `x.copy()` instead of `list(x)` * plotting: Add a comment about the missing keys plot removal * tests: Fix after #9595
11 lines
270 B
Python
11 lines
270 B
Python
from typing import List
|
|
from pathlib import Path
|
|
from tests.block_tools import get_plot_dir
|
|
|
|
|
|
def get_test_plots(sub_dir: str = "") -> List[Path]:
|
|
path = get_plot_dir()
|
|
if sub_dir != "":
|
|
path = path / sub_dir
|
|
return list(sorted(path.glob("*.plot")))
|