29 """The ethalox canonical carries optimal_of_ratio 1.4. A methalox overlay (table 2.4-4.2) now
30 moves the target to the preset's design O/F (DEF-06), which the check accepts; an ethalox
31 target put back on the methalox design must still be refused, not pinned at the table edge."""
32 switched =
PintleEngineConfig(**apply_propellant(load_canonical_config(
"pintle"),
"methalox"))
33 assert switched.design_requirements.optimal_of_ratio == pytest.approx(2.8)
34 _layer1_check_of_target_in_cea_range(switched, switched.design_requirements.optimal_of_ratio)
35 with pytest.raises(ValueError, match=
"outside the CEA table for methalox"):
36 _layer1_check_of_target_in_cea_range(switched, 1.4)