Agent skill

xlsx-to-python-test-assertion-patterns-by-data-type

Sub-skill of xlsx-to-python: Test Assertion Patterns by Data Type (+1).

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/data/office/xlsx-to-python/test-assertion-patterns-by-data-type

SKILL.md

Test Assertion Patterns by Data Type (+1)

Test Assertion Patterns by Data Type

Excel Cell Type Python Test Pattern
Number (float) assert result == pytest.approx(expected, rel=1e-6)
Integer assert result == expected
Boolean assert result is True/False
String assert result == "expected_string"
Date assert result == datetime(YYYY, M, D)
Error (#REF!, #N/A) Skip — log as extraction gap

Tolerance Selection

Domain Typical Tolerance Rationale
Structural (stress, force) rel=1e-4 4 sig figs standard in engineering
Geotechnical (soil params) rel=1e-3 Higher uncertainty in soil data
Financial (currency) abs=0.01 Cent-level precision
General engineering rel=1e-6 Default — tighten if needed

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results