Website: list the machine estimator — menu, sitemap, FAQ and apps-page links; R-997 closed
gates / gates (push) Failing after 6m33s
gates / gates (push) Failing after 6m33s
noindex and the robots Disallow lines removed; both URLs in the sitemap with their hreflang pair; the pair moves from UNLISTED to TWINS in site_gates.py. The explaining sentence's base figure was already the drawn box's base; a test now pins it (red-proved).
This commit is contained in:
@@ -158,6 +158,17 @@ class SizingWeb(unittest.TestCase):
|
||||
self.assertEqual(dict(segs)["base"], 4096) # 8 GB: 8,192 - guest 4,096 — not the 1,636 of a 2.3 GB box
|
||||
self.assertEqual(dict(segs)["spare"], 4096 - self.d["platform_mb"])
|
||||
|
||||
def test_sentence_base_is_the_drawn_box_base(self):
|
||||
# the explaining sentence's „kb. {base} GB a gép alaprendszeréé” is the base part of the box the BAR draws,
|
||||
# from the same rule: 4.0 GB when the bar is an 8 GB box, 4.6 GB for the household preset (a 12.7 GB bar)
|
||||
for name, sel, want in (("files and passwords", ["nextcloud", "vaultwarden"], "4.0"),
|
||||
("household", HOUSEHOLD, "4.6")):
|
||||
_, segs = segments(self.d, sel)
|
||||
self.assertEqual("%.1f" % (dict(segs)["base"] / 1024), want, name)
|
||||
js = io.open(JS, encoding="utf-8").read()
|
||||
self.assertIn("base_mb: boxMb - guestMb", js)
|
||||
self.assertIn(".replace('{base}', dec(r.base_mb / 1024))", js)
|
||||
|
||||
def test_grouping_keeps_a_single_leftover_named(self):
|
||||
by_peak = [a["slug"] for a in sorted((a for a in self.d["apps"] if not a.get("builtin")), key=lambda a: -a["peak_mb"])]
|
||||
named, grouped = legend_parts(self.d, by_peak[:9])
|
||||
|
||||
Reference in New Issue
Block a user