@@ -1359,12 +1359,32 @@ mod tests {
1359
1359
1360
1360
#[ test]
1361
1361
fn snapshot_test_shield_codes ( ) {
1362
- assert_json_snapshot ! ( ShieldStateCode :: AuthenticityNotGuaranteed ) ;
1363
- assert_json_snapshot ! ( ShieldStateCode :: UnknownDevice ) ;
1364
- assert_json_snapshot ! ( ShieldStateCode :: UnsignedDevice ) ;
1365
- assert_json_snapshot ! ( ShieldStateCode :: UnverifiedIdentity ) ;
1366
- assert_json_snapshot ! ( ShieldStateCode :: SentInClear ) ;
1367
- assert_json_snapshot ! ( ShieldStateCode :: VerificationViolation ) ;
1362
+ with_settings ! ( { prepend_module_to_snapshot => false } , {
1363
+ assert_json_snapshot!(
1364
+ "ShieldStateCode__AuthenticityNotGuaranteed" ,
1365
+ ShieldStateCode :: AuthenticityNotGuaranteed ,
1366
+ ) ;
1367
+ assert_json_snapshot!(
1368
+ "ShieldStateCode__UnknownDevice" ,
1369
+ ShieldStateCode :: UnknownDevice ,
1370
+ ) ;
1371
+ assert_json_snapshot!(
1372
+ "ShieldStateCode__UnsignedDevice" ,
1373
+ ShieldStateCode :: UnsignedDevice ,
1374
+ ) ;
1375
+ assert_json_snapshot!(
1376
+ "ShieldStateCode__UnverifiedIdentity" ,
1377
+ ShieldStateCode :: UnverifiedIdentity ,
1378
+ ) ;
1379
+ assert_json_snapshot!(
1380
+ "ShieldStateCode__SentInClear" ,
1381
+ ShieldStateCode :: SentInClear ,
1382
+ ) ;
1383
+ assert_json_snapshot!(
1384
+ "ShieldStateCode__VerificationViolation" ,
1385
+ ShieldStateCode :: VerificationViolation ,
1386
+ ) ;
1387
+ } ) ;
1368
1388
}
1369
1389
1370
1390
#[ test]
0 commit comments