Skip to content

Commit 454ddd7

Browse files
committed
fix: update regex patterns in validation tests for RMDI fields
1 parent b07748d commit 454ddd7

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

mule/lib/mule/tests/unit/test_AncilFile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def test_basic_varres_field_bzx_fail(self):
319319
self.anc.fields = [self.fld]
320320
with six.assertRaisesRegex(
321321
self, ValidateError,
322-
"Field start longitude \(bzx\) not RMDI"):
322+
r"Field start longitude \(bzx\) not RMDI"):
323323
self.anc.validate()
324324

325325
# Test a variable resolution field with non RMDI bzy fails
@@ -335,7 +335,7 @@ def test_basic_varres_field_bzy_fail(self):
335335
self.anc.fields = [self.fld]
336336
with six.assertRaisesRegex(
337337
self, ValidateError,
338-
"Field start latitude \(bzy\) not RMDI"):
338+
r"Field start latitude \(bzy\) not RMDI"):
339339
self.anc.validate()
340340

341341
# Test a variable resolution field with non RMDI bdx fails
@@ -351,7 +351,7 @@ def test_basic_varres_field_bdx_fail(self):
351351
self.anc.fields = [self.fld]
352352
with six.assertRaisesRegex(
353353
self, ValidateError,
354-
"Field longitude interval \(bdx\) not RMDI"):
354+
r"Field longitude interval \(bdx\) not RMDI"):
355355
self.anc.validate()
356356

357357
# Test a variable resolution field with non RMDI bdy fails
@@ -367,7 +367,7 @@ def test_basic_varres_field_bdy_fail(self):
367367
self.anc.fields = [self.fld]
368368
with six.assertRaisesRegex(
369369
self, ValidateError,
370-
"Field latitude interval \(bdy\) not RMDI"):
370+
r"Field latitude interval \(bdy\) not RMDI"):
371371
self.anc.validate()
372372

373373
# Test lower boundary x value just within tolerance passes

mule/lib/mule/tests/unit/test_DumpFile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def test_basic_varres_field_bzx_fail(self):
437437
self.ff.fields = [self.fld]
438438
with six.assertRaisesRegex(
439439
self, ValidateError,
440-
"Field start longitude \(bzx\) not RMDI"):
440+
r"Field start longitude \(bzx\) not RMDI"):
441441
self.ff.validate()
442442

443443
# Test a variable resolution field with non RMDI bzy fails
@@ -453,7 +453,7 @@ def test_basic_varres_field_bzy_fail(self):
453453
self.ff.fields = [self.fld]
454454
with six.assertRaisesRegex(
455455
self, ValidateError,
456-
"Field start latitude \(bzy\) not RMDI"):
456+
r"Field start latitude \(bzy\) not RMDI"):
457457
self.ff.validate()
458458

459459
# Test a variable resolution field with non RMDI bdx fails
@@ -469,7 +469,7 @@ def test_basic_varres_field_bdx_fail(self):
469469
self.ff.fields = [self.fld]
470470
with six.assertRaisesRegex(
471471
self, ValidateError,
472-
"Field longitude interval \(bdx\) not RMDI"):
472+
r"Field longitude interval \(bdx\) not RMDI"):
473473
self.ff.validate()
474474

475475
# Test a variable resolution field with non RMDI bdy fails
@@ -485,7 +485,7 @@ def test_basic_varres_field_bdy_fail(self):
485485
self.ff.fields = [self.fld]
486486
with six.assertRaisesRegex(
487487
self, ValidateError,
488-
"Field latitude interval \(bdy\) not RMDI"):
488+
r"Field latitude interval \(bdy\) not RMDI"):
489489
self.ff.validate()
490490

491491
# Test lower boundary x value just within tolerance passes

mule/lib/mule/tests/unit/test_FieldsFile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def test_basic_varres_field_bzx_fail(self):
418418
self.ff.fields = [self.fld]
419419
with six.assertRaisesRegex(
420420
self, ValidateError,
421-
"Field start longitude \(bzx\) not RMDI"):
421+
r"Field start longitude \(bzx\) not RMDI"):
422422
self.ff.validate()
423423

424424
# Test a variable resolution field with non RMDI bzy fails
@@ -433,7 +433,7 @@ def test_basic_varres_field_bzy_fail(self):
433433
self.ff.fields = [self.fld]
434434
with six.assertRaisesRegex(
435435
self, ValidateError,
436-
"Field start latitude \(bzy\) not RMDI"):
436+
r"Field start latitude \(bzy\) not RMDI"):
437437
self.ff.validate()
438438

439439
# Test a variable resolution field with non RMDI bdx fails
@@ -448,7 +448,7 @@ def test_basic_varres_field_bdx_fail(self):
448448
self.ff.fields = [self.fld]
449449
with six.assertRaisesRegex(
450450
self, ValidateError,
451-
"Field longitude interval \(bdx\) not RMDI"):
451+
r"Field longitude interval \(bdx\) not RMDI"):
452452
self.ff.validate()
453453

454454
# Test a variable resolution field with non RMDI bdy fails
@@ -463,7 +463,7 @@ def test_basic_varres_field_bdy_fail(self):
463463
self.ff.fields = [self.fld]
464464
with six.assertRaisesRegex(
465465
self, ValidateError,
466-
"Field latitude interval \(bdy\) not RMDI"):
466+
r"Field latitude interval \(bdy\) not RMDI"):
467467
self.ff.validate()
468468

469469
# Test lower boundary x value just within tolerance passes

mule/lib/mule/tests/unit/test_LBCFile.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_basic_varres_field_bzx_fail(self):
316316
self.lbc.fields = [self.fld]
317317
with six.assertRaisesRegex(
318318
self, ValidateError,
319-
"Field start longitude \(bzx\) not RMDI"):
319+
r"Field start longitude \(bzx\) not RMDI"):
320320
self.lbc.validate()
321321

322322
# Test a variable resolution field with non RMDI bzy fails
@@ -332,7 +332,7 @@ def test_basic_varres_field_bzy_fail(self):
332332
self.lbc.fields = [self.fld]
333333
with six.assertRaisesRegex(
334334
self, ValidateError,
335-
"Field start latitude \(bzy\) not RMDI"):
335+
r"Field start latitude \(bzy\) not RMDI"):
336336
self.lbc.validate()
337337

338338
# Test a variable resolution field with non RMDI bdx fails
@@ -348,7 +348,7 @@ def test_basic_varres_field_bdx_fail(self):
348348
self.lbc.fields = [self.fld]
349349
with six.assertRaisesRegex(
350350
self, ValidateError,
351-
"Field longitude interval \(bdx\) not RMDI"):
351+
r"Field longitude interval \(bdx\) not RMDI"):
352352
self.lbc.validate()
353353

354354
# Test a variable resolution field with non RMDI bdy fails
@@ -364,7 +364,7 @@ def test_basic_varres_field_bdy_fail(self):
364364
self.lbc.fields = [self.fld]
365365
with six.assertRaisesRegex(
366366
self, ValidateError,
367-
"Field latitude interval \(bdy\) not RMDI"):
367+
r"Field latitude interval \(bdy\) not RMDI"):
368368
self.lbc.validate()
369369

370370
# Test lower boundary x value just within tolerance passes

0 commit comments

Comments
 (0)