Add credits to account in test setup for content generation, linking, and optimization tests

- Updated test cases in `test_universal_content_types.py`, `test_universal_content_linking.py`, and `test_universal_content_optimization.py` to initialize account credits for testing.
- Changed mock patch references to `run_ai_task` for consistency across tests.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 02:23:01 +00:00
parent 2074191eee
commit 5552e698be
4 changed files with 12 additions and 3 deletions

View File

@@ -15,6 +15,9 @@ class UniversalContentOptimizationTests(IntegrationTestBase):
def setUp(self):
super().setUp()
# Add credits to account for testing
self.account.credits = 10000
self.account.save()
self.optimizer_service = OptimizerService()
# Create product content