Commit Graph

4 Commits

Author SHA1 Message Date
c057794c64 auto-claude: subtask-3-1 - Create test file for social_media_audit with Google Places tests
Add comprehensive unit tests for social_media_audit.py:
- WebsiteAuditor tests: SSL checks, hosting detection, HTML parsing, social media extraction
- GooglePlacesSearcher tests: find_place, get_place_details, API error handling
- BraveSearcher tests: Google reviews search, fallback mechanisms
- SocialMediaAuditor tests: company auditing, result saving, integration tests
- Pattern tests: hosting providers, social media URL patterns, exclusion rules

Tests follow the same structure and patterns as test_seo_audit.py.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 20:35:27 +01:00
28efbfabce auto-claude: 8.3 - Test /admin/seo dashboard rendering, sorting, filt
Created comprehensive test suite for SEO admin dashboard functionality:
- tests/test_admin_seo_dashboard.py with 8 test functions
- Dashboard data query verification (SQLAlchemy joins)
- Statistics calculation (good/medium/poor/not_audited counts)
- Score color coding (green/yellow/red thresholds)
- Sorting logic (name, score, date)
- Filtering logic (category, score range, text search)
- Drill-down links validation
- API response structure verification
- Template data requirements verification

All 8 dashboard tests pass. All 64 existing SEO unit tests pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 09:29:47 +01:00
92055bbe60 auto-claude: 8.1 - Create tests/test_seo_audit.py with tests for PageSpeed client, on-page analyzer, technical checker
Implemented comprehensive unit test suite for SEO audit functionality:

- TestPageSpeedScore: Dataclass creation and serialization
- TestCoreWebVitals: Core Web Vitals dataclass tests
- TestRateLimiter: Rate limiting and quota tracking (7 tests)
- TestGooglePageSpeedClient: API client with mocked responses (6 tests)
- TestOnPageSEOAnalyzer: HTML analysis including meta tags, headings, images, links, structured data, Open Graph, Twitter Cards (12 tests)
- TestTechnicalSEOChecker: robots.txt, sitemap.xml, redirects, canonical, indexability (13 tests)
- TestSEOAuditScoreCalculation: On-page and technical score calculation
- TestSEOAuditResultCategorization: Result categorization logic
- TestParseBatchArgument: CLI batch argument parsing
- TestConvenienceFunctions: Helper functions

Total: 64 tests, all passing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 09:18:15 +01:00
02fc67bf40 Initial commit 2026-01-01 14:01:49 +01:00