Skip to content

Commit 3d0a8a5

Browse files
(MAINT) Update i18n testing for schema_i18n macro
This change removes the search for translations defined in YAML files from the `dsc_i18n` test suite to drop false positives for unused translations. Testing whether a schema uses an undefined translation for a documentation keyword is redundant, now that the implementation causes schema generation to _panic_ when it uses an undefined translation key.
1 parent 6b00f72 commit 3d0a8a5

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

dsc/tests/dsc_i18n.tests.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ BeforeDiscovery {
130130
if (Test-Path -Path $tomlFile) {
131131
$this.LoadFile((Get-Item -Path $tomlFile))
132132
}
133-
$yamlFiles = Get-ChildItem -Path $localesFolder | Where-Object Extension -match 'ya?ml'
134-
foreach ($yamlFile in $yamlFiles) {
135-
$this.LoadFile($yamlFile)
136-
}
137133

138134
$this.CheckTranslations($projectFolder)
139135
}

0 commit comments

Comments
 (0)