Skip to content

Commit

Permalink
Turn off scanning after CW test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-zhangg committed Nov 29, 2024
1 parent 0536f09 commit df7b30f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,12 @@ describe('CodeWhisperer-basicCommands', function () {
sandbox.restore()
})

after(async function () {
// disable auto scan after testrun
await CodeScansState.instance.setScansEnabled(false)
assert.strictEqual(CodeScansState.instance.isScansEnabled(), false)
})

it('should call applySecurityFix command successfully', async function () {
const fileName = 'sample.py'
const textDocumentMock = createMockDocument('first line\n second line\n fourth line', fileName)
Expand Down

0 comments on commit df7b30f

Please sign in to comment.