more fixes
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
"""
|
||||
Site Building Models
|
||||
Legacy SiteBuilder module has been removed.
|
||||
This file is kept for backwards compatibility with migrations.
|
||||
This file is kept for backwards compatibility with migrations and legacy code.
|
||||
"""
|
||||
from django.db import models
|
||||
from igny8_core.auth.models import AccountBaseModel
|
||||
|
||||
# All SiteBuilder models have been removed:
|
||||
# - SiteBlueprint
|
||||
@@ -13,3 +14,32 @@ from django.db import models
|
||||
# - BusinessType, AudienceProfile, BrandPersonality, HeroImageryDirection
|
||||
#
|
||||
# Taxonomy functionality moved to ContentTaxonomy model in business/content/models.py
|
||||
|
||||
# Stub classes for backwards compatibility with legacy imports
|
||||
class SiteBlueprint(AccountBaseModel):
|
||||
"""Legacy stub - SiteBuilder has been removed"""
|
||||
class Meta:
|
||||
app_label = 'site_building'
|
||||
db_table = 'legacy_site_blueprint_stub'
|
||||
managed = False # Don't create table
|
||||
|
||||
class PageBlueprint(AccountBaseModel):
|
||||
"""Legacy stub - SiteBuilder has been removed"""
|
||||
class Meta:
|
||||
app_label = 'site_building'
|
||||
db_table = 'legacy_page_blueprint_stub'
|
||||
managed = False # Don't create table
|
||||
|
||||
class SiteBlueprintCluster(AccountBaseModel):
|
||||
"""Legacy stub - SiteBuilder has been removed"""
|
||||
class Meta:
|
||||
app_label = 'site_building'
|
||||
db_table = 'legacy_site_blueprint_cluster_stub'
|
||||
managed = False # Don't create table
|
||||
|
||||
class SiteBlueprintTaxonomy(AccountBaseModel):
|
||||
"""Legacy stub - SiteBuilder has been removed"""
|
||||
class Meta:
|
||||
app_label = 'site_building'
|
||||
db_table = 'legacy_site_blueprint_taxonomy_stub'
|
||||
managed = False # Don't create table
|
||||
|
||||
@@ -13,13 +13,12 @@ from igny8_core.auth.models import (
|
||||
Site,
|
||||
User,
|
||||
)
|
||||
from igny8_core.business.site_building.models import PageBlueprint, SiteBlueprint
|
||||
|
||||
|
||||
class SiteBuilderTestBase(TestCase):
|
||||
"""
|
||||
Provides a lightweight set of fixtures (account/site/sector/blueprint)
|
||||
so Site Builder tests can focus on service logic instead of boilerplate.
|
||||
DEPRECATED: Provides a lightweight set of fixtures (account/site/sector/blueprint)
|
||||
SiteBlueprint models have been removed.
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
@@ -65,20 +64,9 @@ class SiteBuilderTestBase(TestCase):
|
||||
account=self.account,
|
||||
)
|
||||
|
||||
self.blueprint = SiteBlueprint.objects.create(
|
||||
site=self.site,
|
||||
sector=self.sector,
|
||||
name='Core Blueprint',
|
||||
description='Initial blueprint used for tests',
|
||||
hosting_type='igny8_sites',
|
||||
config_json={
|
||||
'business_brief': 'Default brief',
|
||||
'objectives': ['Drive demos'],
|
||||
'style': {'palette': 'bold'},
|
||||
},
|
||||
)
|
||||
self.page_blueprint = PageBlueprint.objects.create(
|
||||
site_blueprint=self.blueprint,
|
||||
# DEPRECATED: SiteBlueprint and PageBlueprint models removed
|
||||
self.blueprint = None
|
||||
self.page_blueprint = None
|
||||
slug='home',
|
||||
title='Home',
|
||||
type='home',
|
||||
|
||||
@@ -1,20 +1,18 @@
|
||||
"""
|
||||
Tests for Bulk Page Generation
|
||||
DEPRECATED: Tests for Bulk Page Generation - SiteBlueprint models removed
|
||||
Phase 5: Sites Renderer & Bulk Generation
|
||||
"""
|
||||
from django.test import TestCase
|
||||
from unittest.mock import patch, Mock
|
||||
|
||||
from igny8_core.auth.models import Account, Site, Sector
|
||||
from igny8_core.business.site_building.models import SiteBlueprint, PageBlueprint
|
||||
from igny8_core.business.site_building.services.page_generation_service import PageGenerationService
|
||||
from igny8_core.business.content.models import Tasks
|
||||
|
||||
from .base import SiteBuilderTestBase
|
||||
|
||||
|
||||
class BulkGenerationTestCase(SiteBuilderTestBase):
|
||||
"""Test cases for bulk page generation"""
|
||||
"""DEPRECATED: Test cases for bulk page generation"""
|
||||
|
||||
def setUp(self):
|
||||
"""Set up test data"""
|
||||
|
||||
Reference in New Issue
Block a user