Пример #1
0
def test_get_lat_long_climate_zones_out_of_range():
    climate_zones = get_lat_long_climate_zones(0, 0)
    assert climate_zones == {
        "iecc_climate_zone": None,
        "iecc_moisture_regime": None,
        "ba_climate_zone": None,
        "ca_climate_zone": None,
    }
Пример #2
0
def test_get_lat_long_climate_zones_out_of_range():
    climate_zones = get_lat_long_climate_zones(0, 0)
    assert climate_zones == {
        'iecc_climate_zone': None,
        'iecc_moisture_regime': None,
        'ba_climate_zone': None,
        'ca_climate_zone': None,
    }
Пример #3
0
def test_get_lat_long_climate_zones():
    climate_zones = get_lat_long_climate_zones(35.1, -119.2)
    assert climate_zones == {
        "iecc_climate_zone": "3",
        "iecc_moisture_regime": "B",
        "ba_climate_zone": "Hot-Dry",
        "ca_climate_zone": "CA_13",
    }
Пример #4
0
def test_get_lat_long_climate_zones():
    climate_zones = get_lat_long_climate_zones(35.1, -119.2)
    assert climate_zones == {
        'iecc_climate_zone': '3',
        'iecc_moisture_regime': 'B',
        'ba_climate_zone': 'Hot-Dry',
        'ca_climate_zone': 'CA_13',
    }