Example #1
0
def test_mcoe_self(pudl_out_mcoe, live_dbs):
    """Test MCOE outputs against their historical selves..."""
    if not live_dbs:
        pytest.skip("Data validation only works with a live PUDL DB.")
    if pudl_out_mcoe.freq is None:
        pytest.skip()
    for args in pv.mcoe_self:
        pv.vs_self(pudl_out_mcoe.mcoe(), **args)
Example #2
0
def test_fuel_cost_per_mmbtu(pudl_out_mcoe, live_dbs):
    """Verify that fuel costs per mmbtu are reasonable for coal & gas."""
    if not live_dbs:
        pytest.skip("Data validation only works with a live PUDL DB.")
    # The annual numbers for MCOE costs have too many NA values:
    if pudl_out_mcoe.freq != "MS":
        pytest.skip()
    for args in pv.mcoe_self_fuel_cost_per_mmbtu:
        pv.vs_self(pudl_out_mcoe.mcoe(), **args)

    for args in pv.mcoe_fuel_cost_per_mmbtu:
        pv.vs_bounds(pudl_out_mcoe.mcoe(), **args)
Example #3
0
def test_self_vs_historical(pudl_out_ferc1, live_dbs):
    """Validate..."""
    if not live_dbs:
        pytest.skip("Data validation only works with a live PUDL DB.")
    for args in pv.fuel_ferc1_self:
        pv.vs_self(pudl_out_ferc1.fuel_ferc1(), **args)
Example #4
0
def test_self_vs_historical(pudl_out_ferc1, live_pudl_db):
    """Validate..."""
    if not live_pudl_db:
        raise AssertionError("Data validation only works with a live PUDL DB.")
    for args in pv.fuel_ferc1_self:
        pv.vs_self(pudl_out_ferc1.fuel_ferc1(), **args)