Skip to content

Commit c80b5b3

Browse files
committed
tests update
1 parent 19ced24 commit c80b5b3

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

internal/exec/docs_generate_test.go

+10-12
Original file line numberDiff line numberDiff line change
@@ -209,24 +209,22 @@ func TestGenerateDocument_WithInjectedRenderer(t *testing.T) {
209209

210210
// Create a dummy atmosConfig with minimal Docs configuration.
211211
atmosConfig := schema.AtmosConfiguration{
212-
Settings: schema.AtmosSettings{
213-
Docs: schema.Docs{
214-
Generate: map[string]schema.DocsGenerate{
215-
"readme": {
216-
BaseDir: ".",
217-
Input: []string{tmpYAML.Name()},
218-
Template: "", // Use default template.
219-
Output: "TEST_README.md",
220-
Terraform: schema.TerraformDocsReadmeSettings{
221-
Enabled: false,
222-
},
212+
Docs: schema.Docs{
213+
Generate: map[string]schema.DocsGenerate{
214+
"readme": {
215+
BaseDir: ".",
216+
Input: []string{tmpYAML.Name()},
217+
Template: "", // Use default template.
218+
Output: "TEST_README.md",
219+
Terraform: schema.TerraformDocsReadmeSettings{
220+
Enabled: false,
223221
},
224222
},
225223
},
226224
},
227225
}
228226

229-
docsGenerate := atmosConfig.Settings.Docs.Generate["readme"]
227+
docsGenerate := atmosConfig.Docs.Generate["readme"]
230228
// Call generateDocument with our injected stubRenderer.
231229
err = generateDocument(&atmosConfig, targetDir, &docsGenerate, mockRenderer{})
232230
if err != nil {

0 commit comments

Comments
 (0)