Add test_data to flake8, fixing current issues

Change-Id: I25bae588edfe075ba0437a24584c9a14894e1f27
This commit is contained in:
Henrik Wahlqvist
2025-08-27 12:31:26 +02:00
parent 7dc2e36c2b
commit 7307c20ae7
4 changed files with 26 additions and 22 deletions

View File

@@ -22,8 +22,7 @@ nvm_vars_test = {
'sVcAesHw_X_VntAdpnOffs': {
'VcAesVnt': {
'class': 'CVC_DISP_NVM',
'configs': ['Vc_Aes_Vnt_B_CodeGenVntGvnr '
'== 0'],
'configs': ['Vc_Aes_Vnt_B_CodeGenVntGvnr == 0'],
'description': 'Enter a nice '
'description of your '
'variable here',

View File

@@ -4,8 +4,13 @@
"""Unit test data for powertrain_build.zone_controller.composition_yaml."""
description = "This is a valid description."
illegal_description = "This is a description with 'single' and \"double\" quotes & some <illegal> XML characters."
fixed_illegal_description = "This is a description with &apos;single&apos; and &quot;double&quot; quotes &amp; some &lt;illegal&gt; XML characters."
illegal_description = (
"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: "
"&apos;single&apos; and &quot;double&quot; quotes as well as &lt; &amp; &gt;."
)
long_description = (
"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"

View File

@@ -23,7 +23,7 @@ deps =
-rtest-requirements.txt
[testenv:flake8]
commands = flake8 powertrain_build tests
commands = flake8 powertrain_build tests test_data
[testenv:pytest]
commands =