1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 09:43:46 +00:00

remove hardcoded user/password for testing storedb

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40311
This commit is contained in:
Daniel Grana 2008-10-07 13:01:32 +00:00
parent fc782d5e4b
commit 0ae4a19e08

View File

@ -4,13 +4,14 @@ from time import sleep
from 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 MySQLdb
from scrapy.utils.db import mysql_connect