Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/tests/apps/ai/agent/tools/rag/generator_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests for the RAG Generator."""

import math
import os
from unittest.mock import MagicMock, patch

Expand Down Expand Up @@ -320,4 +321,4 @@ def test_generate_answer_none_openai_response(self):
def test_constants(self):
"""Test class constants have expected values."""
assert Generator.MAX_TOKENS == 2000
assert Generator.TEMPERATURE == 0.5
assert math.isclose(Generator.TEMPERATURE, 0.5)
3 changes: 2 additions & 1 deletion backend/tests/apps/slack/common/question_detector_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests for question detector functionality."""

import math
import os
from unittest.mock import MagicMock, patch

Expand Down Expand Up @@ -182,7 +183,7 @@ def test_mocked_initialization(self):
def test_class_constants(self, detector):
"""Test that class constants are properly defined."""
assert detector.MAX_TOKENS == 10
assert detector.TEMPERATURE == 0.1
assert math.isclose(detector.TEMPERATURE, 0.1)
assert detector.CHAT_MODEL == "gpt-4o-mini"

def test_openai_client_initialization(self, detector):
Expand Down
Loading