Skip to content

Commit

Permalink
fix: test all curtailment columns
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Jun 1, 2020
1 parent fdde9ed commit f34573f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions postreise/analyze/generation/tests/test_curtailment.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ def _check_curtailment_vs_expected(self, curtailment, expected):
self.assertEqual(curtailment.keys(), expected.keys())
for key in curtailment.keys():
self.assertIsInstance(curtailment[key], pd.DataFrame)
assert_array_equal(curtailment[key].index.to_numpy(),
expected[key].index.to_numpy())
assert_array_equal(curtailment[key].columns.to_numpy(),
expected[key].columns.to_numpy())
assert_array_equal(curtailment[key].to_numpy(),
expected[key].to_numpy())
assert_array_equal(curtailment[key].index.to_numpy(),
expected[key].index.to_numpy())
assert_array_equal(curtailment[key].columns.to_numpy(),
expected[key].columns.to_numpy())
assert_array_equal(curtailment[key].to_numpy(),
expected[key].to_numpy())

def test_calculate_curtailment_time_series_solar(self):
expected_return = {'solar': mock_curtailment['solar']}
Expand Down

0 comments on commit f34573f

Please sign in to comment.