extract-test-set

Extract a vault price dataframe into a test module and parquet file.

823|185|Updated Jan 30, 2022
One-click install
npx skills add https://github.com/tradingstrategy-ai/web3-ethereum-defi --skill extract-test-set
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-test-set
Source: https://github.com/tradingstrategy-ai/web3-ethereum-defi/tree/main/.claude/skills/extract-test-set
Command: npx skills add https://github.com/tradingstrategy-ai/web3-ethereum-defi --skill extract-test-set

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extracts a raw price dataframe for a specific vault test case to enable isolated unit testing.

Core Features & Use Cases

  • Generate a focused test module for a vault price dataset
  • Produce a parquet file containing price data aligned to the test case
  • Facilitate deterministic unit tests for vault price logic

Quick Start

Run the extraction script to generate a test module and a parquet dataset for the specified vault test case.

Frequently Asked Questions about extract-test-set

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract vault price data for isolated unit testing in pytest?

To extract vault price data for pytest, run the extraction script targeting a specific chain and contract address. It generates a dedicated test module and a parquet file containing the raw price dataframe needed for deterministic unit tests.

What is a parquet file used for when testing vault price logic?

A parquet file stores the extracted raw price dataframe for a specific vault test case. It provides a static, deterministic dataset that enables isolated and repeatable unit testing of vault price logic without hitting live databases.

Do I need access to a specific database to extract price data for a vault test case?

Yes, extracting price data for a vault test case requires access to the DEFAULT_UNCLEANED_PRICE_DATABASE. The extraction script queries this database to pull the raw price dataframe for the specified chain and contract address.

Can I generate a pytest module directly from a specific vault contract address?

Yes, you can generate a pytest module directly from a vault contract address. The Skill uses an ad-hoc script to target the given chain and address, producing both the test module and the corresponding parquet price data file.

What's the best way to create deterministic unit tests for vault price logic?

The best way to create deterministic unit tests for vault price logic is to extract raw price data into a parquet file. This decouples tests from live database fluctuations by providing a fixed dataframe aligned to the specific vault test case.