Fixes some indentation in chrome module

This commit is contained in:
Abhay Rana 2014-10-03 16:26:35 +05:30
parent c7cea3d278
commit 0b0b5c92b8
2 changed files with 8 additions and 8 deletions

View File

@ -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})

View File

@ -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])