mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
Merge branch 'main' into relevant
This commit is contained in:
@@ -2,7 +2,6 @@ from enum import Enum
|
||||
|
||||
from core.log import get_logger
|
||||
|
||||
from .javascript_react import JavascriptReactProjectTemplate
|
||||
from .node_express_mongoose import NodeExpressMongooseProjectTemplate
|
||||
from .react_express import ReactExpressProjectTemplate
|
||||
|
||||
@@ -12,13 +11,13 @@ log = get_logger(__name__)
|
||||
class ProjectTemplateEnum(str, Enum):
|
||||
"""Choices of available project templates."""
|
||||
|
||||
JAVASCRIPT_REACT = JavascriptReactProjectTemplate.name
|
||||
# JAVASCRIPT_REACT = JavascriptReactProjectTemplate.name
|
||||
NODE_EXPRESS_MONGOOSE = NodeExpressMongooseProjectTemplate.name
|
||||
REACT_EXPRESS = ReactExpressProjectTemplate.name
|
||||
|
||||
|
||||
PROJECT_TEMPLATES = {
|
||||
JavascriptReactProjectTemplate.name: JavascriptReactProjectTemplate,
|
||||
# JavascriptReactProjectTemplate.name: JavascriptReactProjectTemplate,
|
||||
NodeExpressMongooseProjectTemplate.name: NodeExpressMongooseProjectTemplate,
|
||||
ReactExpressProjectTemplate.name: ReactExpressProjectTemplate,
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "gpt-pilot"
|
||||
version = "0.2.8"
|
||||
version = "0.2.10"
|
||||
description = "Build complete apps using AI agents"
|
||||
authors = ["Senko Rasic <senko@pythagora.ai>"]
|
||||
license = "FSL-1.1-MIT"
|
||||
|
||||
@@ -19,7 +19,7 @@ async def test_run(agentcontext):
|
||||
side_effect=[
|
||||
TemplateSelection(
|
||||
architecture="dummy arch",
|
||||
template="javascript_react",
|
||||
template="node_express_mongoose",
|
||||
),
|
||||
Architecture(
|
||||
system_dependencies=[
|
||||
@@ -52,4 +52,4 @@ async def test_run(agentcontext):
|
||||
assert sm.current_state.specification.architecture == "dummy arch"
|
||||
assert sm.current_state.specification.system_dependencies[0]["name"] == "docker"
|
||||
assert sm.current_state.specification.package_dependencies[0]["name"] == "express"
|
||||
assert "javascript_react" in sm.current_state.specification.templates
|
||||
assert "node_express_mongoose" in sm.current_state.specification.templates
|
||||
|
||||
@@ -31,7 +31,7 @@ async def test_create_initial_epic(agentcontext):
|
||||
async def test_apply_project_template(agentcontext):
|
||||
sm, _, ui, _ = agentcontext
|
||||
|
||||
sm.current_state.specification.templates = {"javascript_react": {}}
|
||||
sm.current_state.specification.templates = {"node_express_mongoose": {}}
|
||||
sm.current_state.epics = [{"name": "Initial Project"}]
|
||||
|
||||
await sm.commit()
|
||||
|
||||
@@ -55,6 +55,7 @@ async def test_render_react_express_nosql(mock_get_config, testmanager):
|
||||
assert "prisma/schema.prisma" not in files
|
||||
|
||||
|
||||
@pytest.mark.skip
|
||||
@pytest.mark.asyncio
|
||||
@patch("core.state.state_manager.get_config")
|
||||
async def test_render_javascript_react(mock_get_config, testmanager):
|
||||
|
||||
Reference in New Issue
Block a user