getaero-io/gtm-eng-skills / engineering/warm-intro-scoring
warm-intro-scoring
Verifiedscripts/test_version_parity.py
View on GitHub"""Prove that the replay comparator detects a changed output."""
from pathlib import Path
import shutil
import tempfile
import unittest
from compare_versions import compare
ROOT = Path(__file__).resolve().parents[1]
class VersionParity(unittest.TestCase):
def test_identical_package_matches(self):
self.assertEqual(len(compare(ROOT, ROOT)), 3)
def test_changed_score_export_fails(self):
with tempfile.TemporaryDirectory() as tmp:
changed = Path(tmp) / 'changed'
shutil.copytree(ROOT, changed, ignore=shutil.ignore_patterns('__pycache__'))
script = changed / 'scripts/score.py'
with script.open('a') as out:
out.write("\nif __name__ == '__main__':\n import sys\n with open(sys.argv[sys.argv.index('--output')+1], 'a') as changed_output: changed_output.write('changed\\n')\n")
with self.assertRaisesRegex(AssertionError, 'scores.csv'):
compare(ROOT, changed)
if __name__ == '__main__':
unittest.main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |