Scrapy, a fast high-level web crawling & scraping framework for Python.
remove hardcoded user/password for testing storedb
Daniel Grana0ae4a19e0843
diff --git a/scrapy/trunk/scrapy/tests/test_storedb.py b/scrapy/trunk/scrapy/tests/test_storedb.pyindex 1a31dd1b7..31e43eebc 100644--- a/scrapy/trunk/scrapy/tests/test_storedb.py+++ b/scrapy/trunk/scrapy/tests/test_storedb.py@@ -4,13 +4,14 @@ from time import sleepfrom twisted.trial import unittest-# This is the DB used for testing-TEST_DB = "mysql://root:r00tpass@localhost/scrapingtest"-class ProductComparisonTestCase(unittest.TestCase):""" Test product comparison functions """def setUp(self):+ TEST_DB = settings.get('TEST_DB')+ if not TEST_DB:+ raise unittest.SkipTest("TEST_DB not configured")+try:import MySQLdbfrom scrapy.utils.db import mysql_connect