Testeos en desarrollo del sistema de capturas. Pequeños retoques.
This commit is contained in:
parent
e97bbba274
commit
6a0baf4de6
7 changed files with 257 additions and 177 deletions
21
tests/capturer_tests.py
Normal file
21
tests/capturer_tests.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
sys.path.append('..')
|
||||
from capturer.capturer import CapturingTask
|
||||
|
||||
|
||||
|
||||
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())
|
||||
|
||||
|
||||
|
||||
test_CapturingTask()
|
||||
Loading…
Add table
Add a link
Reference in a new issue