@@ -401,7 +401,8 @@ def test_plugins_search_querystringsearch_search_cloudcover_peps(
401
401
self .assertNotIn ("cloudCover" , mock__request .call_args_list [- 1 ][0 ][1 ].url )
402
402
403
403
def test_plugins_search_querystringsearch_search_peps_ko (self ):
404
- """A query with an unknown parameter must raise an error if the provider does not allow it""" # noqa
404
+ """A query with a parameter which is not queryable must
405
+ raise an error if the provider does not allow it""" # noqa
405
406
# with raising error parameter in the global config of the provider
406
407
provider_search_plugin_config = deepcopy (self .peps_search_plugin .config )
407
408
self .peps_search_plugin .config .discover_metadata = {
@@ -418,8 +419,9 @@ def test_plugins_search_querystringsearch_search_peps_ko(self):
418
419
** {** self .search_criteria_s2_msi_l1c , ** {"foo" : "bar" }},
419
420
)
420
421
self .assertEqual (
421
- f"Unknown parameters not allowed for { self .peps_search_plugin .provider } "
422
- f"with { self .search_criteria_s2_msi_l1c ['productType' ]} " ,
422
+ "Search parameters which are not queryable are disallowed for "
423
+ f"{ self .search_criteria_s2_msi_l1c ['productType' ]} with { self .peps_search_plugin .provider } : "
424
+ "please remove 'foo' from your search parameters" ,
423
425
str (context .exception ),
424
426
)
425
427
@@ -446,8 +448,9 @@ def test_plugins_search_querystringsearch_search_peps_ko(self):
446
448
** {** self .search_criteria_s2_msi_l1c , ** {"foo" : "bar" }},
447
449
)
448
450
self .assertEqual (
449
- f"Unknown parameters not allowed for { self .peps_search_plugin .provider } "
450
- f"with { self .search_criteria_s2_msi_l1c ['productType' ]} " ,
451
+ "Search parameters which are not queryable are disallowed for "
452
+ f"{ self .search_criteria_s2_msi_l1c ['productType' ]} with { self .peps_search_plugin .provider } : "
453
+ "please remove 'foo' from your search parameters" ,
451
454
str (context .exception ),
452
455
)
453
456
@@ -3299,7 +3302,8 @@ def test_plugins_search_postjsonsearchwithstacqueryables_search_wekeomain(
3299
3302
mock_build_qs_stacsearch .assert_not_called ()
3300
3303
3301
3304
def test_plugins_search_postjsonsearchwithstacqueryables_search_wekeomain_ko (self ):
3302
- """A query with an unknown parameter must raise an error if the provider does not allow it""" # noqa
3305
+ """A query with a parameter which is not queryable must
3306
+ raise an error if the provider does not allow it""" # noqa
3303
3307
# with raising error parameter in the global config of the provider
3304
3308
provider_search_plugin_config = deepcopy (self .wekeomain_search_plugin .config )
3305
3309
self .wekeomain_search_plugin .config .discover_metadata = {
@@ -3316,8 +3320,9 @@ def test_plugins_search_postjsonsearchwithstacqueryables_search_wekeomain_ko(sel
3316
3320
** {** self .search_criteria_s2_msi_l1c , ** {"foo" : "bar" }},
3317
3321
)
3318
3322
self .assertEqual (
3319
- f"Unknown parameters not allowed for { self .wekeomain_search_plugin .provider } "
3320
- f"with { self .search_criteria_s2_msi_l1c ['productType' ]} " ,
3323
+ "Search parameters which are not queryable are disallowed for "
3324
+ f"{ self .search_criteria_s2_msi_l1c ['productType' ]} with { self .wekeomain_search_plugin .provider } : "
3325
+ "please remove 'foo' from your search parameters" ,
3321
3326
str (context .exception ),
3322
3327
)
3323
3328
@@ -3344,8 +3349,9 @@ def test_plugins_search_postjsonsearchwithstacqueryables_search_wekeomain_ko(sel
3344
3349
** {** self .search_criteria_s2_msi_l1c , ** {"foo" : "bar" }},
3345
3350
)
3346
3351
self .assertEqual (
3347
- f"Unknown parameters not allowed for { self .wekeomain_search_plugin .provider } "
3348
- f"with { self .search_criteria_s2_msi_l1c ['productType' ]} " ,
3352
+ "Search parameters which are not queryable are disallowed for "
3353
+ f"{ self .search_criteria_s2_msi_l1c ['productType' ]} with { self .wekeomain_search_plugin .provider } : "
3354
+ "please remove 'foo' from your search parameters" ,
3349
3355
str (context .exception ),
3350
3356
)
3351
3357
0 commit comments