Fixes some indentation in chrome module

pull/26/head
Abhay Rana 8 years ago
parent c7cea3d278
commit 0b0b5c92b8
  1. 2
      hackertray/chrome.py
  2. 14
      test/chrome_test.py

@ -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…
Cancel
Save