- apps/core/management/commands/seed_own_showcase.py:幂等地在生产已有的 ProductIndexPage/CaseStudyIndexPage 下创建/更新“世耀CMS”产品页与衡水世耀 科技官网建设案例页;产品/栏目页缺失时 CommandError 退出,不自动创建栏目。 - apps/core/tests.py:新增 3 个用例(缺栏目页报错、创建成功、重复执行幂等), pytest 75 -> 78,全部通过。
- apps/core/management/commands/seed_own_showcase.py:幂等地在生产已有的 ProductIndexPage/CaseStudyIndexPage 下创建/更新“世耀CMS”产品页与衡水世耀 科技官网建设案例页;产品/栏目页缺失时 CommandError 退出,不自动创建栏目。 - apps/core/tests.py:新增 3 个用例(缺栏目页报错、创建成功、重复执行幂等), pytest 75 -> 78,全部通过。