Пример #1
0
def xtest_carrying_cost_not_replacable():
    """ 3 DERs all not replaceable for the duration of the project
    This test will check for :
        1) proforma is length of lifetime + 1
        2) replacement costs
        3) decomissioning cost should be on the last year
        4) capital cost column should be replaced with economic carrying
            capacity
        6) taxes dont appear in proforma
        7) ecc breakdown CSV in results
    """
    assert_ran(r" ", )  # TODO
Пример #2
0
def xtest_ecc_long_actual_lifetime():
    """ Test ECC calculations when batteries degradation module results in a
        longer lifetime than user given"""    # TODO
    assert_ran(r" ", )
Пример #3
0
def xtest_ecc_zero_out():
    """ Test that value from services are 0-ed"""
    # TODO
    assert_ran(r" ", )
Пример #4
0
def test_pv_pv_ice():
    assert_ran(DIR / "035-pv_pv_ice_bill_reduction.csv")
def test_batt():
    assert_ran(DIR / "026-DA_FR_SR_NSR_battery_month.csv")
Пример #6
0
def test_ice():
    assert_ran(DIR / "030-billreduction_ice_month.csv")
Пример #7
0
def test_ice_pv():
    assert_ran(DIR / "032-pv_ice_bill_reduction.csv")
Пример #8
0
def test_monthly():
    # TODO check that post-facto cash flows are ZERO
    assert_ran(DIR / '005-cba_monthly_timseries.csv', )
Пример #9
0
def test_catch_wrong_length():
    # trying to do sensetivity analysis and evaluation columns
    # following should fail
    with pytest.raises(ModelParameterError):
        assert_ran(DIR / '002-catch_wrong_length.csv', )
Пример #10
0
def test_coupled_evaluation():
    # TODO check that post-facto cash flows are ZERO
    assert_ran(DIR / '004-cba_valuation_coupled_dt.csv', )
Пример #11
0
def xtest_tariff():  # TODO
    assert_ran(DIR / '106-cba_tariff.csv', )
Пример #12
0
def test_batt_ts_constraints():
    assert_ran(DIR / "029-DA_FR_SR_NSR_battery_month_ts_constraints.csv")
Пример #13
0
def test_batt_pv_ice():
    assert_ran(DIR / "028-DA_FR_SR_NSR_battery_pv_ice_month.csv")
Пример #14
0
def test_pv_ice():
    assert_ran(DIR / "027-DA_FR_SR_NSR_pv_ice_month.csv")
Пример #15
0
def xtest_da_month_degradation_predict_when_battery_will_be_replaced():
    assert_ran(
        CBA_DIR + r"\Model_Parameters_Template_ENEA_S1_8_12_UC1_DAETS_" +
        r"doesnt_reach_eol_during_opt.csv", )
Пример #16
0
def xtest_linear_salvage_value():
    # TODO check to make sure that salvage value is some nonzero value
    assert_ran(CBA_DIR + r"\110-linear_salvage_value.csv", )
Пример #17
0
def test_sensitivity_evaluation():
    # TODO check that post-facto cash flows are ZERO
    assert_ran(DIR / '003-cba_valuation_sensitivity.csv', )
Пример #18
0
def xtest_user_defined_salvage_value():
    # TODO check to make sure that salvage value is some nonzero value
    assert_ran(CBA_DIR + r"\user_salvage_value.csv", )
Пример #19
0
def test_controllable_load_month():
    assert_ran(DIR / "031-billreduction_battery_controllableload_month.csv")
Пример #20
0
def xtest_shortest_lifetime_linear_salvage():
    assert_ran(DIR / "shortest_lifetime_linear_salvage.csv")
Пример #21
0
def test_ice_ice():
    assert_ran(DIR / "033-ice_ice_bill_reduction.csv")
Пример #22
0
def xtest_ppa():
    """ Test solar's PPA feature"""
    assert_ran(DIR / "ppa_payment.csv")
Пример #23
0
def test_battery():
    """tests fixed size with retail ETS and DCM services through 1 battery"""
    assert_ran(DIR / "004-fixed_size_battery_retailets_dcm.csv")
def xtest_da_lf_fr_battery_combined_market():
    """ Tests a case were FR and LF are the same model. Requires that the resulting profits and
    costs are the same for FR and LF

    """
    assert_ran(r" ", )  # TODO