18 lines
666 B
Python
18 lines
666 B
Python
import unittest
|
|
|
|
from model_routing.review_choice import chosen
|
|
from model_routing.route import Route
|
|
from model_routing.ladder import Rung
|
|
|
|
OPUS = Rung("claude-opus-5-5", "medium")
|
|
FABLE = Rung("claude-fable-5-2", "max")
|
|
|
|
|
|
class Chosen(unittest.TestCase):
|
|
def test_names_no_higher_rung_on_the_top_one(self):
|
|
self.assertEqual(chosen(OPUS, Route(FABLE, 3, 4, 5)).higher, {})
|
|
|
|
def test_reviews_a_branch_changing_only_markdown_on_the_projects_rung_and_the_seats_and_security_pass_there_always(self):
|
|
choice = chosen(OPUS, Route(FABLE, 3, 4, 5))
|
|
self.assertEqual((choice.reviewers, choice.markdown_only, choice.seat, choice.security), (FABLE, OPUS, OPUS, OPUS))
|