cmarteepants commented on code in PR #64232:
URL: https://github.com/apache/airflow/pull/64232#discussion_r2997405753
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/ui/test_config.py:
##########
@@ -92,6 +92,59 @@ def mock_config_data():
yield
+THEME_WITH_ALL_COLORS = {
+ "tokens": {
+ "colors": {
+ "brand": {
+ "50": {"value": "oklch(0.975 0.008 298.0)"},
+ "100": {"value": "oklch(0.950 0.020 298.0)"},
+ "200": {"value": "oklch(0.900 0.045 298.0)"},
+ "300": {"value": "oklch(0.800 0.080 298.0)"},
+ "400": {"value": "oklch(0.680 0.120 298.0)"},
+ "500": {"value": "oklch(0.560 0.160 298.0)"},
+ "600": {"value": "oklch(0.460 0.190 298.0)"},
+ "700": {"value": "oklch(0.390 0.160 298.0)"},
+ "800": {"value": "oklch(0.328 0.080 298.0)"},
+ "900": {"value": "oklch(0.230 0.050 298.0)"},
+ "950": {"value": "oklch(0.155 0.030 298.0)"},
+ },
+ "gray": {
+ "50": {"value": "oklch(0.975 0.002 264.0)"},
+ "100": {"value": "oklch(0.950 0.003 264.0)"},
+ "200": {"value": "oklch(0.880 0.005 264.0)"},
+ "300": {"value": "oklch(0.780 0.008 264.0)"},
+ "400": {"value": "oklch(0.640 0.012 264.0)"},
+ "500": {"value": "oklch(0.520 0.015 264.0)"},
+ "600": {"value": "oklch(0.420 0.015 264.0)"},
+ "700": {"value": "oklch(0.340 0.012 264.0)"},
+ "800": {"value": "oklch(0.260 0.009 264.0)"},
+ "900": {"value": "oklch(0.200 0.007 264.0)"},
+ "950": {"value": "oklch(0.145 0.005 264.0)"},
+ },
+ "black": {"value": "oklch(0.220 0.025 288.6)"},
+ "white": {"value": "oklch(0.985 0.002 264.0)"},
+ }
+ },
+}
+
+
[email protected]
+def mock_config_data_all_colors():
+ with conf_vars(
+ {
+ ("api", "instance_name"): "Airflow",
+ ("api", "enable_swagger_ui"): "true",
+ ("api", "hide_paused_dags_by_default"): "true",
+ ("api", "fallback_page_limit"): "100",
+ ("api", "default_wrap"): "false",
+ ("api", "auto_refresh_interval"): "3",
+ ("api", "require_confirmation_dag_change"): "false",
Review Comment:
Handled as part of
[e77e944](https://github.com/apache/airflow/pull/64232/commits/e77e944a4a5a68f4fb0b1e0c82e75cae5b2bfbed)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]