Commit 24bc7847 authored by Turner, Sean's avatar Turner, Sean
Browse files

test clean up

parent 939c3ebe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,5 +34,6 @@ viz = ["plotly>=5.18"]

[dependency-groups]
dev = [
    "plotly>=5.18",
    "pytest>=9.0.2",
]
+31 −360

File changed.

Preview size limit exceeded, changes collapsed.

+118 −0
Original line number Diff line number Diff line
{
  "indices": [
    0,
    24,
    72,
    167
  ],
  "objects": {
    "WolfCreek": {
      "release": [
        0.1,
        0.1,
        0.1,
        0.12494926843777279
      ],
      "storage": [
        4844.566666666667,
        4825.949000367393,
        4789.580355857657,
        5082.385541388536
      ],
      "actual_power": [
        15.0,
        15.0,
        15.0,
        15.0
      ]
    },
    "CordellHull": {
      "total_inflow": [
        8.416219997951998,
        8.416219997951998,
        1.1343302101446715,
        1.7130029982031565
      ],
      "spill": [
        0.0,
        8.416219997951998,
        0.0,
        0.19082769389558507
      ],
      "pool_elevation": [
        155.14027033329918,
        157.3,
        157.28868452015166,
        157.3
      ]
    },
    "Cheatham": {
      "total_inflow": [
        16.982439995903995,
        1.7241613956900648,
        1.5678324572686235,
        0.6061805399871885
      ],
      "release": [
        0.0,
        0.4776206641133154,
        0.0,
        0.5239412801220855
      ],
      "actual_power": [
        0.0,
        9.600000000000001,
        0.0,
        12.4
      ]
    },
    "Barkley": {
      "storage": [
        958.1185741324643,
        1061.7936809410828,
        1228.6269736453137,
        1505.815782631803
      ],
      "tailwater_elevation": [
        10.973,
        10.973,
        10.973,
        10.973
      ],
      "actual_power": [
        25.67,
        25.67,
        25.67,
        25.67
      ]
    },
    "Celina": {
      "inflow": [
        16.832439995903997,
        0.1,
        0.1,
        0.1
      ],
      "outflow": [
        16.832439995903997,
        0.1,
        0.1,
        0.1
      ]
    },
    "Celina_CordellHull": {
      "inflow": [
        16.832439995903997,
        0.1,
        0.1,
        0.1
      ],
      "outflow": [
        8.416219997951998,
        8.416219997951998,
        1.1343302101446715,
        1.7130029982031565
      ]
    }
  }
}
+2 −2
Original line number Diff line number Diff line
@@ -252,9 +252,9 @@ class TestCascadeDiagnostics:
        assert "ResB" in labels

    def test_trace_count(self, two_res_results):
        """Each reservoir contributes 11 traces (4 flow + 3 elev + 4 power)."""
        """Each reservoir contributes 9 traces (4 flow + 1 elev + 4 power)."""
        fig = cascade_diagnostics(two_res_results)
        assert len(fig.data) == 2 * 11
        assert len(fig.data) == 2 * 9

    def test_trace_count_with_constraints(self, two_reservoir_cascade, two_res_results):
        """With cascade_data, each reservoir gets 13 traces (6 flow + 3 elev + 4 power)."""
+1 −0
Original line number Diff line number Diff line
@@ -455,6 +455,7 @@ class TestStatisticalRobustness:
# Performance Benchmarks
# =============================================================================

@pytest.mark.slow
class TestPerformance:
    """Benchmark HPF function performance."""

Loading