chore(docs): clean comment format

This commit is contained in:
Stijnvandenbroek
2026-03-04 14:51:27 +00:00
parent 11faf2beab
commit ef31fb812f
10 changed files with 25 additions and 134 deletions

View File

@@ -1,4 +1,4 @@
"""Tests for pure helper functions in data_platform.assets.helpers."""
"""Tests for helper functions."""
from data_platform.helpers import (
format_area,
@@ -8,8 +8,6 @@ from data_platform.helpers import (
safe_int,
)
# ── safe_int ────────────────────────────────────────────────────────────────
class TestSafeInt:
def test_none_returns_none(self):
@@ -43,9 +41,6 @@ class TestSafeInt:
assert safe_int([1, 2, 3]) is None
# ── safe ─────────────────────────────────────────────────────────────────────
class TestSafe:
def test_dict_becomes_json_string(self):
result = safe({"key": "val"})
@@ -76,9 +71,6 @@ class TestSafe:
assert json.loads(result) == data
# ── format_euro ──────────────────────────────────────────────────────────────
class TestFormatEuro:
def test_formats_price(self):
assert format_euro(350000) == "€350,000"
@@ -90,9 +82,6 @@ class TestFormatEuro:
assert format_euro(0) == ""
# ── format_area ──────────────────────────────────────────────────────────────
class TestFormatArea:
def test_formats_area(self):
assert format_area(80) == "80 m²"
@@ -104,9 +93,6 @@ class TestFormatArea:
assert format_area(0) == ""
# ── md_preview_table ─────────────────────────────────────────────────────────
class TestMdPreviewTable:
def test_empty_rows_returns_header_only(self):
result = md_preview_table([], columns=[("title", "Title"), ("city", "City")])