drogon/tests/capturer_tests.py
2018-10-19 17:22:09 +02:00

27 lines
No EOL
540 B
Python

# -*- coding: utf-8 -*-
import sys
sys.path.append('..')
from capturer.capturer import CapturingTask, Capturer
def test_CapturingTask():
parameters = {'uuid': 'testie test',
'ad_url': 'https://www.idealista.com/inmueble/81514847',
'fk_uuid_exploring': None,
'status': 'Pending'}
task = CapturingTask(parameters)
task.capture()
print(task.get_ad_data())
def test_Capturer():
capturer = Capturer()
capturer.start()
test_CapturingTask()
# test_Capturer()