|
18 | 18 | )
|
19 | 19 | from hydrolib.core.dflowfm.ini.models import BaseModel
|
20 | 20 | from hydrolib.core.dflowfm.ini.parser import Parser, ParserConfig
|
21 |
| - |
22 | 21 | from tests.utils import (
|
23 | 22 | assert_files_equal,
|
24 | 23 | test_input_dir,
|
@@ -175,9 +174,6 @@ def test_initialize_timeseries_with_wrong_amount_vectorquantities(
|
175 | 174 | assert expected_error_mssg in str(error.value)
|
176 | 175 |
|
177 | 176 |
|
178 |
| - |
179 |
| - |
180 |
| - |
181 | 177 | class TestVectorForcingBase:
|
182 | 178 | class VectorForcingTest(VectorForcingBase):
|
183 | 179 | function: Literal["testfunction"] = "testfunction"
|
@@ -315,7 +311,7 @@ def test_initialize_t3d(
|
315 | 311 | self,
|
316 | 312 | vertical_position_type: str,
|
317 | 313 | exp_vertical_position_type: VerticalPositionType,
|
318 |
| - t3d_values |
| 314 | + t3d_values, |
319 | 315 | ):
|
320 | 316 | t3d_values["vertpositiontype"] = vertical_position_type
|
321 | 317 |
|
@@ -368,7 +364,9 @@ def test_create_t3d_first_quantity_not_time_raises_error(self, t3d_values):
|
368 | 364 | expected_message = "First quantity should be `time`"
|
369 | 365 | assert expected_message in str(error.value)
|
370 | 366 |
|
371 |
| - def test_create_t3d_time_quantity_with_verticalpositionindex_raises_error(self, t3d_values): |
| 367 | + def test_create_t3d_time_quantity_with_verticalpositionindex_raises_error( |
| 368 | + self, t3d_values |
| 369 | + ): |
372 | 370 |
|
373 | 371 | t3d_values["quantityunitpair"] = [
|
374 | 372 | _create_quantityunitpair("time", TEST_TIME_UNIT, 1),
|
@@ -412,10 +410,7 @@ def test_create_t3d_verticalpositionindex_missing_for_non_time_unit_raises_error
|
412 | 410 | ],
|
413 | 411 | )
|
414 | 412 | def test_create_t3d_verticalposition_in_quantityunitpair_has_invalid_value_raises_error(
|
415 |
| - self, |
416 |
| - vertpositions: List[float], |
417 |
| - verticalpositionindexes: List[int], |
418 |
| - t3d_values |
| 413 | + self, vertpositions: List[float], verticalpositionindexes: List[int], t3d_values |
419 | 414 | ):
|
420 | 415 | time_quantityunitpair = [_create_quantityunitpair("time", TEST_TIME_UNIT)]
|
421 | 416 | other_quantutyunitpairs = []
|
@@ -447,7 +442,7 @@ def test_create_t3d_number_of_verticalindexpositions_not_as_expected_raises_erro
|
447 | 442 | self,
|
448 | 443 | number_of_quantities_and_units: int,
|
449 | 444 | number_of_verticalpositionindexes: int,
|
450 |
| - t3d_values |
| 445 | + t3d_values, |
451 | 446 | ):
|
452 | 447 | del t3d_values["quantityunitpair"]
|
453 | 448 |
|
@@ -525,7 +520,9 @@ def test_create_t3d_creates_correct_quantityunitpairs_using_verticalpositioninde
|
525 | 520 | expected_quantityunitpairs = []
|
526 | 521 |
|
527 | 522 | for quantity, unit, verticalpositionindex in zip(
|
528 |
| - t3d_values["quantity"], t3d_values["unit"], [None] + t3d_values["vertpositionindex"] |
| 523 | + t3d_values["quantity"], |
| 524 | + t3d_values["unit"], |
| 525 | + [None] + t3d_values["vertpositionindex"], |
529 | 526 | ):
|
530 | 527 | expected_quantityunitpairs.append(
|
531 | 528 | _create_quantityunitpair(quantity, unit, verticalpositionindex)
|
|
0 commit comments