Formatting.
This commit is contained in:
parent
cd9c3b6e39
commit
a79fc533ee
11 changed files with 231 additions and 204 deletions
|
|
@ -1,15 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import sys
|
||||
sys.path.append('..')
|
||||
|
||||
sys.path.append("..")
|
||||
from capturer.capturer import CapturingTask, Capturer, AdHtmlParser
|
||||
from db_layer.capturas_interface import capturas_interface
|
||||
|
||||
|
||||
def test_CapturingTask():
|
||||
parameters = {'uuid': 'testie test',
|
||||
'ad_url': 'https://www.idealista.com/inmueble/28252032',
|
||||
'fk_uuid_exploring': None,
|
||||
'status': 'Pending'}
|
||||
parameters = {
|
||||
"uuid": "testie test",
|
||||
"ad_url": "https://www.idealista.com/inmueble/28252032",
|
||||
"fk_uuid_exploring": None,
|
||||
"status": "Pending",
|
||||
}
|
||||
|
||||
task = CapturingTask(parameters)
|
||||
|
||||
|
|
@ -22,6 +25,7 @@ def test_Capturer():
|
|||
capturer = Capturer()
|
||||
capturer.start()
|
||||
|
||||
|
||||
def test_AdHtmlParser():
|
||||
|
||||
html = """
|
||||
|
|
@ -225,8 +229,8 @@ var configTwoSteps = {
|
|||
parser._validate()
|
||||
|
||||
|
||||
#test_AdHtmlParser()
|
||||
# test_AdHtmlParser()
|
||||
|
||||
test_CapturingTask()
|
||||
|
||||
#test_Capturer()
|
||||
# test_Capturer()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue