-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_analyzer.py
More file actions
21 lines (18 loc) · 818 Bytes
/
test_analyzer.py
File metadata and controls
21 lines (18 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from coverr.analyzer import CoverrAnalyzer
from pexels.analyzer import PexelsAnalyzer
from pixabay.analyzer import PixabayAnalyzer
#initialize three analyzers
coverr_analyzer = CoverrAnalyzer()
pexels_analyzer = PexelsAnalyzer()
pixabay_analyzer = PixabayAnalyzer()
# Test data for all 3 analyzers to validate the response or functionality
test_quote = "A beautiful sunset over the mountains"
# Test the CoverrAnalyzer
coverr_response = coverr_analyzer.get_video_url(test_quote)
print(f"CoverrAnalyzer response: {coverr_response}")
# Test the PexelsAnalyzer
pexels_response = pexels_analyzer.get_video_url(test_quote)
print(f"PexelsAnalyzer response: {pexels_response}")
# Test the PixabayAnalyzer
pixabay_response = pixabay_analyzer.get_video_url(test_quote)
print(f"PixabayAnalyzer response: {pixabay_response}")