Skip to content

Commit 23ee4ca

Browse files
committed
fixed tests
1 parent db219b3 commit 23ee4ca

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

backend/tests/apps/ai/management/commands/ai_update_repository_chunks_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from apps.ai.common.base.chunk_command import BaseChunkCommand
66
from apps.ai.management.commands.ai_update_repository_chunks import Command
7+
from apps.github.models.repository import Repository
78

89

910
@pytest.fixture
@@ -33,8 +34,6 @@ def test_command_help_text(self, command):
3334

3435
def test_model_class_property(self, command):
3536
"""Test the model_class property returns Repository."""
36-
from apps.github.models.repository import Repository
37-
3837
assert command.model_class == Repository
3938

4039
def test_entity_name_property(self, command):

backend/tests/apps/ai/management/commands/ai_update_repository_context_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import pytest
44

5+
from apps.ai.common.base.context_command import BaseContextCommand
56
from apps.ai.management.commands.ai_update_repository_context import Command
7+
from apps.github.models.repository import Repository
68

79

810
@pytest.fixture
@@ -24,8 +26,6 @@ def mock_repository():
2426
class TestAiUpdateRepositoryContextCommand:
2527
def test_command_inheritance(self, command):
2628
"""Test that the command inherits from BaseContextCommand."""
27-
from apps.ai.common.base.context_command import BaseContextCommand
28-
2929
assert isinstance(command, BaseContextCommand)
3030

3131
def test_command_help_text(self, command):
@@ -34,8 +34,6 @@ def test_command_help_text(self, command):
3434

3535
def test_model_class_property(self, command):
3636
"""Test the model_class property returns Repository."""
37-
from apps.github.models.repository import Repository
38-
3937
assert command.model_class == Repository
4038

4139
def test_entity_name_property(self, command):

0 commit comments

Comments
 (0)