Removing objective_thread_pitch from scopes_info

This commit is contained in:
Ian Roddis committed 2026-08-17 15:48:50 -03:00
1 parent 067ddffbe5
commit 292830ae0f
10 files changed
+29 -23

No files matched your search

-4
View File
@@ -49,7 +49,6 @@ async def _seed_guide_data(db):
magnification_min=3,
magnification_max=18,
objective_lens_diameter_mm=50,
objective_thread_pitch="M52x0.75",
)
)
@@ -222,7 +221,6 @@ async def test_scopes_page_renders_rows_and_fits(
assert "Alpha 3-18x50" in body # scope row
assert "Flip cover 50mm" in body # a matching part in a fit column
assert "fit-badge-exact" in body # the exact fit badge
assert "M52x0.75" in body # scope info: objective thread
assert "3-18" in body # magnification range, integral values un-padded
@@ -294,9 +292,7 @@ async def test_scopes_page_renders_objective_attachment_point_thread(
resp = await client.get("/scopes")
assert resp.status_code == 200
body = resp.text
# The attachment point's thread spec wins over ScopeInfo.objective_thread_pitch.
assert "M44.0×0.5" in body
assert "M52x0.75" not in body
@pytest.mark.asyncio