From 943a03ae5a0bf1e411b2a100443d584b854e9473 Mon Sep 17 00:00:00 2001 From: Nitzan Pomerantz <9297302+nitzpo@users.noreply.github.com> Date: Fri, 24 Oct 2025 19:27:32 +0300 Subject: [PATCH] Improve test assertion specificity and formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace broad assertion (mean > 0) with specific expected value using pytest.approx for floating-point comparison. This makes the test more robust and prevents future regressions. Changes: - Change area_stats mean assertion from > 0 to == pytest.approx(80.0) - Add final newline to file per convention Expected mean: (80 + 90 + 70) / 3 = 80.0 Addresses PR #2 review comments on line 527. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- tests/test_govmap_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_govmap_client.py b/tests/test_govmap_client.py index 51cabbb..b0286f3 100644 --- a/tests/test_govmap_client.py +++ b/tests/test_govmap_client.py @@ -524,4 +524,4 @@ class TestMarketAnalysisFunctions: assert "price_per_sqm_stats" in stats assert stats["count"] == 3 assert stats["price_stats"]["mean"] > 0 - assert stats["area_stats"]["mean"] > 0 \ No newline at end of file + assert stats["area_stats"]["mean"] == pytest.approx(80.0)