@@ -422,7 +422,7 @@ def test_plugins_search_querystringsearch_search_peps_ko(self):
422
422
"Search parameters which are not queryable are disallowed for "
423
423
f"{ self .search_criteria_s2_msi_l1c ['productType' ]} with { self .peps_search_plugin .provider } : "
424
424
"please remove 'foo' from your search parameters" ,
425
- str ( context .exception ) ,
425
+ context .exception . message ,
426
426
)
427
427
428
428
# restore the original config
@@ -451,7 +451,7 @@ def test_plugins_search_querystringsearch_search_peps_ko(self):
451
451
"Search parameters which are not queryable are disallowed for "
452
452
f"{ self .search_criteria_s2_msi_l1c ['productType' ]} with { self .peps_search_plugin .provider } : "
453
453
"please remove 'foo' from your search parameters" ,
454
- str ( context .exception ) ,
454
+ context .exception . message ,
455
455
)
456
456
457
457
# restore the original config
@@ -2624,8 +2624,8 @@ def test_plugins_search_ecmwfsearch_discover_queryables_ko(self, mock__fetch_dat
2624
2624
with self .assertRaises (ValidationError ) as context :
2625
2625
self .search_plugin .discover_queryables (** params )
2626
2626
self .assertEqual (
2627
- f"{ wrong_queryable } is not a queryable parameter for { self .provider } " ,
2628
- str ( context .exception ) ,
2627
+ f"' { wrong_queryable } ' is not a queryable parameter for { self .provider } " ,
2628
+ context .exception . message ,
2629
2629
)
2630
2630
2631
2631
@mock .patch ("eodag.utils.requests.requests.sessions.Session.get" , autospec = True )
@@ -3323,7 +3323,7 @@ def test_plugins_search_postjsonsearchwithstacqueryables_search_wekeomain_ko(sel
3323
3323
"Search parameters which are not queryable are disallowed for "
3324
3324
f"{ self .search_criteria_s2_msi_l1c ['productType' ]} with { self .wekeomain_search_plugin .provider } : "
3325
3325
"please remove 'foo' from your search parameters" ,
3326
- str ( context .exception ) ,
3326
+ context .exception . message ,
3327
3327
)
3328
3328
3329
3329
# restore the original config
@@ -3352,7 +3352,7 @@ def test_plugins_search_postjsonsearchwithstacqueryables_search_wekeomain_ko(sel
3352
3352
"Search parameters which are not queryable are disallowed for "
3353
3353
f"{ self .search_criteria_s2_msi_l1c ['productType' ]} with { self .wekeomain_search_plugin .provider } : "
3354
3354
"please remove 'foo' from your search parameters" ,
3355
- str ( context .exception ) ,
3355
+ context .exception . message ,
3356
3356
)
3357
3357
3358
3358
# restore the original config
0 commit comments