コード例 #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")
コード例 #5
0
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")
コード例 #24
0
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