Add test_data to flake8, fixing current issues
Change-Id: I25bae588edfe075ba0437a24584c9a14894e1f27
This commit is contained in:
@@ -10,7 +10,7 @@ nvm_vars_test = {
|
|||||||
'configs': ['all'],
|
'configs': ['all'],
|
||||||
'description': 'Enter a nice description of your variable here',
|
'description': 'Enter a nice description of your variable here',
|
||||||
'handle': 'VcAcCtrl/VcAcCtrl/Subsystem/VcAcCtrl/CoolingManager/'
|
'handle': 'VcAcCtrl/VcAcCtrl/Subsystem/VcAcCtrl/CoolingManager/'
|
||||||
'3_SystemInfo/36_CompressorRunTime/sVcAcCtrl_t_CmprRunTiNVM/Unit Delay',
|
'3_SystemInfo/36_CompressorRunTime/sVcAcCtrl_t_CmprRunTiNVM/Unit Delay',
|
||||||
'lsb': 1,
|
'lsb': 1,
|
||||||
'max': 'nan',
|
'max': 'nan',
|
||||||
'min': 'nan',
|
'min': 'nan',
|
||||||
@@ -22,13 +22,12 @@ nvm_vars_test = {
|
|||||||
'sVcAesHw_X_VntAdpnOffs': {
|
'sVcAesHw_X_VntAdpnOffs': {
|
||||||
'VcAesVnt': {
|
'VcAesVnt': {
|
||||||
'class': 'CVC_DISP_NVM',
|
'class': 'CVC_DISP_NVM',
|
||||||
'configs': ['Vc_Aes_Vnt_B_CodeGenVntGvnr '
|
'configs': ['Vc_Aes_Vnt_B_CodeGenVntGvnr == 0'],
|
||||||
'== 0'],
|
|
||||||
'description': 'Enter a nice '
|
'description': 'Enter a nice '
|
||||||
'description of your '
|
'description of your '
|
||||||
'variable here',
|
'variable here',
|
||||||
'handle': 'VcAesVnt/VcAesVnt/Subsystem/VcAesVnt/VcAesVnt/1_Vnt/11_VntGvnr/'
|
'handle': 'VcAesVnt/VcAesVnt/Subsystem/VcAesVnt/VcAesVnt/1_Vnt/11_VntGvnr/'
|
||||||
'111_VntGvnrExe/1111_VntGvnrFct/11112_VntAdpn/sVcAesHw_X_VntAdpnOffs/Unit Delay',
|
'111_VntGvnrExe/1111_VntGvnrFct/11112_VntAdpn/sVcAesHw_X_VntAdpnOffs/Unit Delay',
|
||||||
'lsb': 1,
|
'lsb': 1,
|
||||||
'max': 'nan',
|
'max': 'nan',
|
||||||
'min': 'nan',
|
'min': 'nan',
|
||||||
@@ -44,10 +43,10 @@ nvm_vars_test = {
|
|||||||
'class': 'CVC_DISP_NVM',
|
'class': 'CVC_DISP_NVM',
|
||||||
'configs': ['all'],
|
'configs': ['all'],
|
||||||
'description': 'Enter a nice '
|
'description': 'Enter a nice '
|
||||||
'description of your '
|
'description of your '
|
||||||
'variable here',
|
'variable here',
|
||||||
'handle': 'VcAesMoAdp/VcAesMoAdp/Subsystem/VcAesMoAdp/VcAesMoAdp/'
|
'handle': 'VcAesMoAdp/VcAesMoAdp/Subsystem/VcAesMoAdp/VcAesMoAdp/'
|
||||||
'2_ThrArAdpn/sVcAesMo_Ar_NvmThrAdpn/Unit Delay',
|
'2_ThrArAdpn/sVcAesMo_Ar_NvmThrAdpn/Unit Delay',
|
||||||
'lsb': 1,
|
'lsb': 1,
|
||||||
'max': 'nan',
|
'max': 'nan',
|
||||||
'min': 'nan',
|
'min': 'nan',
|
||||||
@@ -63,10 +62,10 @@ nvm_vars_test = {
|
|||||||
'class': 'CVC_DISP_NVM',
|
'class': 'CVC_DISP_NVM',
|
||||||
'configs': ['all'],
|
'configs': ['all'],
|
||||||
'description': 'Enter a nice '
|
'description': 'Enter a nice '
|
||||||
'description of your '
|
'description of your '
|
||||||
'variable here',
|
'variable here',
|
||||||
'handle': 'VcAesMoAdp/VcAesMoAdp/Subsystem/VcAesMoAdp/VcAesMoAdp/'
|
'handle': 'VcAesMoAdp/VcAesMoAdp/Subsystem/VcAesMoAdp/VcAesMoAdp/'
|
||||||
'2_ThrArAdpn/sVcAesMo_Ar_NvmThrAdpn/Unit Delay',
|
'2_ThrArAdpn/sVcAesMo_Ar_NvmThrAdpn/Unit Delay',
|
||||||
'lsb': 1,
|
'lsb': 1,
|
||||||
'max': 'nan',
|
'max': 'nan',
|
||||||
'min': 'nan',
|
'min': 'nan',
|
||||||
@@ -82,11 +81,11 @@ nvm_vars_test = {
|
|||||||
'class': 'CVC_DISP_NVM',
|
'class': 'CVC_DISP_NVM',
|
||||||
'configs': ['all'],
|
'configs': ['all'],
|
||||||
'description': 'Enter a nice '
|
'description': 'Enter a nice '
|
||||||
'description of '
|
'description of '
|
||||||
'your variable '
|
'your variable '
|
||||||
'here',
|
'here',
|
||||||
'handle': 'VcAesMfl/VcAesMfl/Subsystem/VcAesMfl/VcAesMfl/4_Nvm/41_Ld1Ne1/'
|
'handle': 'VcAesMfl/VcAesMfl/Subsystem/VcAesMfl/VcAesMfl/4_Nvm/41_Ld1Ne1/'
|
||||||
'sVcAesMo_rt_NvmMafLrngLd1Ne1/Unit Delay',
|
'sVcAesMo_rt_NvmMafLrngLd1Ne1/Unit Delay',
|
||||||
'lsb': 1,
|
'lsb': 1,
|
||||||
'max': 'nan',
|
'max': 'nan',
|
||||||
'min': 'nan',
|
'min': 'nan',
|
||||||
@@ -103,7 +102,7 @@ nvm_vars_test = {
|
|||||||
'configs': ['all'],
|
'configs': ['all'],
|
||||||
'description': 'Enter a nice description of your variable here',
|
'description': 'Enter a nice description of your variable here',
|
||||||
'handle': 'VcAcCtrl/VcAcCtrl/Subsystem/VcAcCtrl/CoolingManager/3_SystemInfo/'
|
'handle': 'VcAcCtrl/VcAcCtrl/Subsystem/VcAcCtrl/CoolingManager/3_SystemInfo/'
|
||||||
'36_CompressorRunTime/sVcAcCtrl_t_CmprRunTiNVM/Unit Delay',
|
'36_CompressorRunTime/sVcAcCtrl_t_CmprRunTiNVM/Unit Delay',
|
||||||
'lsb': 1,
|
'lsb': 1,
|
||||||
'max': 'nan',
|
'max': 'nan',
|
||||||
'min': 'nan',
|
'min': 'nan',
|
||||||
@@ -118,7 +117,7 @@ nvm_vars_test = {
|
|||||||
'configs': ['all'],
|
'configs': ['all'],
|
||||||
'description': 'Enter a nice description of your variable here',
|
'description': 'Enter a nice description of your variable here',
|
||||||
'handle': 'VcAcCtrl/VcAcCtrl/Subsystem/VcAcCtrl/CoolingManager/3_SystemInfo/'
|
'handle': 'VcAcCtrl/VcAcCtrl/Subsystem/VcAcCtrl/CoolingManager/3_SystemInfo/'
|
||||||
'36_CompressorRunTime/sVcAcCtrl_t_CmprRunTiNVM/Unit Delay',
|
'36_CompressorRunTime/sVcAcCtrl_t_CmprRunTiNVM/Unit Delay',
|
||||||
'lsb': 1,
|
'lsb': 1,
|
||||||
'max': 'nan',
|
'max': 'nan',
|
||||||
'min': 'nan',
|
'min': 'nan',
|
||||||
|
@@ -4,8 +4,13 @@
|
|||||||
"""Unit test data for powertrain_build.zone_controller.composition_yaml."""
|
"""Unit test data for powertrain_build.zone_controller.composition_yaml."""
|
||||||
|
|
||||||
description = "This is a valid description."
|
description = "This is a valid description."
|
||||||
illegal_description = "This is a description with 'single' and \"double\" quotes & some <illegal> XML characters."
|
illegal_description = (
|
||||||
fixed_illegal_description = "This is a description with 'single' and "double" quotes & some <illegal> XML characters."
|
"This is a description with illegal XML characters: 'single' and \"double\" quotes as well as < & >."
|
||||||
|
)
|
||||||
|
fixed_illegal_description = (
|
||||||
|
"This is a description with illegal XML characters: "
|
||||||
|
"'single' and "double" quotes as well as < & >."
|
||||||
|
)
|
||||||
long_description = (
|
long_description = (
|
||||||
"This is a long description that spans multiple lines. \n"
|
"This is a long description that spans multiple lines. \n"
|
||||||
"It does not contain any single and double quotes or any other illegal XML characters. \n"
|
"It does not contain any single and double quotes or any other illegal XML characters. \n"
|
||||||
|
Reference in New Issue
Block a user