agents-city 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/test-serve.py CHANGED
@@ -176,18 +176,29 @@ def main():
176
176
  cabecera = pagina.split("*{box-sizing", 1)[0]
177
177
  cuerpo_css = pagina.split("*{box-sizing", 1)[1].split("</style>", 1)[0]
178
178
  afirma(
179
- "· the day palette carries the tokens of agentscity.net",
180
- "--dia-suelo:#f3f0e8" in cabecera
181
- and "--dia-tinta:#1d2229" in cabecera
182
- and "--dia-lampara:#7048e8" in cabecera,
183
- cabecera[-400:],
179
+ "· daylight is the default skin, in the tokens of agentscity.net",
180
+ "--suelo:#f3f0e8" in cabecera
181
+ and "--tinta:#1d2229" in cabecera
182
+ and "--lampara:#7048e8" in cabecera,
183
+ cabecera[-500:],
184
184
  )
185
185
  afirma(
186
- "· an explicit choice outranks the machine's preference",
187
- '[data-tema="claro"]' in cabecera
188
- and "prefers-color-scheme:light" in cabecera
189
- and ':root:not([data-tema="oscuro"])' in cabecera,
190
- cabecera[-600:],
186
+ "· night is declared once and only mapped, never written twice",
187
+ "--noche-suelo:#131a24" in cabecera
188
+ and cabecera.count("--noche-suelo:#131a24") == 1,
189
+ cabecera[-500:],
190
+ )
191
+ afirma(
192
+ # Daylight is THE default, not a default a dark desktop overrides:
193
+ # the owner asked for light and a machine setting does not outvote
194
+ # them. Night is reachable only through the switch, and remembered.
195
+ "· night is a choice made here, never one the machine makes",
196
+ '[data-tema="oscuro"]' in cabecera
197
+ # The RULE, not the word: the palette block explains in prose
198
+ # that there deliberately is no media query, and a test that
199
+ # cannot tell a comment from a rule fails on its own docs.
200
+ and "@media(prefers-color-scheme" not in cabecera,
201
+ cabecera[-700:],
191
202
  )
192
203
  import re as _re
193
204