mirror of
https://github.com/captn3m0/hackertray.git
synced 2025-01-21 15:39:32 +00:00
Fixes some indentation in chrome module
This commit is contained in:
parent
c7cea3d278
commit
0b0b5c92b8
@ -9,7 +9,7 @@ class Chrome:
|
||||
def search(urls, config_folder_path):
|
||||
Chrome.setup(config_folder_path)
|
||||
conn = sqlite3.connect('/tmp/hackertray.chrome')
|
||||
db = conn.cursor()
|
||||
db = conn.cursor()
|
||||
result = []
|
||||
for url in urls:
|
||||
db_result = db.execute('SELECT url from urls WHERE url=:url',{"url":url})
|
||||
|
@ -5,11 +5,11 @@ from hackertray import Chrome
|
||||
|
||||
class ChromeTest(unittest.TestCase):
|
||||
def runTest(self):
|
||||
config_folder_path = os.getcwd()+'/test/'
|
||||
config_folder_path = os.getcwd()+'/test/'
|
||||
data = Chrome.search([
|
||||
"https://github.com/",
|
||||
"https://news.ycombinator.com/",
|
||||
"https://github.com/captn3m0/hackertray",
|
||||
"http://invalid_url/"],
|
||||
config_folder_path)
|
||||
self.assertTrue(data == [True,True,True,False])
|
||||
"https://github.com/",
|
||||
"https://news.ycombinator.com/",
|
||||
"https://github.com/captn3m0/hackertray",
|
||||
"http://invalid_url/"],
|
||||
config_folder_path)
|
||||
self.assertTrue(data == [True,True,True,False])
|
Loading…
x
Reference in New Issue
Block a user