drogon/tests/capturer_tests.py
pablomartincalvo 4edff2e0c1 Siguen los retoques. Tests locales exitosos, listo para mover a entorno
de pruebas y dejar corriendo junto a explorer.
2018-10-13 17:45:42 +02:00

27 lines
No EOL
599 B
Python

# -*- coding: utf-8 -*-
import sys
sys.path.append('..')
from capturer.capturer import CapturingTask, Capturer
def test_CapturingTask():
parameters = {'uuid': 'f31af60a-1feb-4770-bee9-0085c678f08f',
'ad_url': 'https://www.idealista.com/inmueble/81593047',
'fk_uuid_exploring': 'e5f9c8d5-b6e9-47fc-b4de-6d78f40feccc',
'status': 'Pending'}
task = CapturingTask(parameters)
task.capture()
print(task.get_ad_data())
def test_Capturer():
capturer = Capturer()
capturer.start()
# test_CapturingTask()
test_Capturer()