mirror of
https://github.com/thecyberlearn/chat-backend.git
synced 2026-08-18 22:12:53 +00:00
Features: - Django REST API backend - Multi-strategy web scraping system (Beautiful Soup, Playwright, Firecrawl) - Anti-detection features (proxy rotation, user-agent rotation) - Data export functionality (JSON, CSV, TXT) - Business and CrawledPage models - Enhanced crawling service with fallback mechanisms 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
421 B
Python
12 lines
421 B
Python
from .api import get_messages
|
|
|
|
# Make unittest ignore frames in this module when reporting failures.
|
|
__unittest = True
|
|
|
|
|
|
class MessagesTestMixin:
|
|
def assertMessages(self, response, expected_messages, *, ordered=True):
|
|
request_messages = list(get_messages(response.wsgi_request))
|
|
assertion = self.assertEqual if ordered else self.assertCountEqual
|
|
assertion(request_messages, expected_messages)
|