Skip to content

Commit 19f3a33

Browse files
Merge branch 'code-quality-fix' of https://github.com/microsoft/content-generation-solution-accelerator into code-quality-fix
2 parents 726e0b4 + 559611c commit 19f3a33

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

archive-doc-gen/src/backend/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ class _AzureSearchSettings(BaseSettings, DatasourcePayloadConstructor):
266266
extra="ignore",
267267
env_ignore_empty=True,
268268
)
269-
270269
_type: Literal["azure_search"] = PrivateAttr(default="azure_search")
271270
top_k: int = Field(default=5, serialization_alias="top_n_documents")
272271
strictness: int = 3

archive-doc-gen/src/frontend/src/components/ChatHistory/chatHistoryListItem.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,10 +554,10 @@ describe('ChatHistoryListItemCell', () => {
554554

555555
test('shows error when trying to rename to an existing title', async () => {
556556
const existingTitle = 'Existing Chat Title'
557-
;(historyRename as jest.Mock).mockResolvedValueOnce({
558-
ok: false,
559-
json: async () => ({ message: 'Title already exists' })
560-
})
557+
; (historyRename as jest.Mock).mockResolvedValueOnce({
558+
ok: false,
559+
json: async () => ({ message: 'Title already exists' })
560+
})
561561

562562
renderWithContext(<ChatHistoryListItemCell item={conversation} onSelect={mockOnSelect} />, mockAppState)
563563

@@ -570,12 +570,12 @@ describe('ChatHistoryListItemCell', () => {
570570
})
571571

572572
const inputItem = screen.getByPlaceholderText(conversation.title)
573-
fireEvent.change(inputItem, { target: { value: 'Another Existing Chat' } })
573+
fireEvent.change(inputItem, { target: { value: 'Test Chat' } })
574574

575575
fireEvent.keyDown(inputItem, { key: 'Enter', code: 'Enter', charCode: 13 })
576576

577577
await waitFor(() => {
578-
expect(screen.getByText(/Error: could not rename item/i)).toBeInTheDocument()
578+
expect(screen.getByText(/Error: Enter a new title to proceed./i)).toBeInTheDocument()
579579
})
580580
})
581581

archive-doc-gen/tests/e2e-test/tests/test_st_docgen_tc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4222,4 +4222,4 @@ def test_bug_26031_validate_empty_spaces_chat_input(login_logout, request):
42224222
logger.info("Test TC 26031 - Empty/Spaces Chat Input Validation completed successfully")
42234223

42244224
finally:
4225-
logger.removeHandler(handler)
4225+
logger.removeHandler(handler)

0 commit comments

Comments
 (0)