symfony/models-dev v81.0
Basename is uppercase README.mdPython unittest class or cleanup-hook marker
SHA-2566c054eb5184b6418bb4bdff804d1430bc4547846a320b9302900289547956825
MaleculeH₂(Cm₂Db)Md(Bk)
Evidence
1#!/bin/bash
2set -euo pipefail
3
4DIR="$(cd "$(dirname "$0")" && pwd)"
5curl -fsSL https://models.dev/api.json | jq -S . > "$DIR/../models-dev.json.tmp"
6mv "$DIR/../models-dev.json.tmp" "$DIR/../models-dev.json"
1#!/usr/bin/env python3
2"""Compare two models-dev.json files and output a semantic changelog in Markdown."""
3
4import json
5import sys
6
7
8def load(path):
9 with open(path) as f:
10 return json.load(f)
11
12
⋯5 lines
⋯8 lines
103
104 if len(args) != 2:
105 print(usage, file=sys.stderr)
106 sys.exit(1)
107
108 old = load(args[0])
⋯5 lines
1#!/usr/bin/env python3
2"""Tests for diff_models.py."""
3
4import unittest
5from diff_models import compute_diff, format_diff, is_breaking
6
7
8class TestComputeDiff(unittest.TestCase):
9 def test_identical(self):
10 data = {"p": {"models": {"m1": {}}}}
11 result = compute_diff(data, data)
12 self.assertEqual(result["added …
59:56… ["m3"]})
60 self.assertEqual(result["removed_models"], {})
61
62
63class TestIsBreaking(unittest.TestCase):
⋯2 lines
No evidence locations were recorded for this file. Raw result