2021-07-20 04:30:00 +00:00
|
|
|
"""Tests for the CO2 Signal integration."""
|
2023-11-24 17:56:58 +00:00
|
|
|
from aioelectricitymaps.models import (
|
|
|
|
CarbonIntensityData,
|
|
|
|
CarbonIntensityResponse,
|
|
|
|
CarbonIntensityUnit,
|
|
|
|
)
|
2021-07-20 04:30:00 +00:00
|
|
|
|
2023-11-24 17:56:58 +00:00
|
|
|
VALID_RESPONSE = CarbonIntensityResponse(
|
|
|
|
status="ok",
|
|
|
|
country_code="FR",
|
|
|
|
data=CarbonIntensityData(
|
|
|
|
carbon_intensity=45.98623190095805,
|
|
|
|
fossil_fuel_percentage=5.461182741937103,
|
|
|
|
),
|
|
|
|
units=CarbonIntensityUnit(
|
|
|
|
carbon_intensity="gCO2eq/kWh",
|
|
|
|
),
|
|
|
|
)
|