File size: 627 Bytes
a64e892
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import pytest
from workflows.content_generator import generate_instagram_content
from config.schemas import InstagramPost

def test_content_generation():
    """Test content generation"""
    test_entry = {
        "title": "Test Article",
        "content": "This is a test article about AI and technology.",
        "entry_id": "test123"
    }
    
    result = generate_instagram_content(test_entry)
    
    # Validate structure
    assert "caption" in result
    assert "hashtags" in result
    assert "image_prompt" in result
    assert len(result["hashtags"]) >= 3

if __name__ == "__main__":
    pytest.main([__file__])