Skip to content

Commit

Permalink
Fix fig up testing -- use REDIS_HOST / REDIS_PORT in test_connection_…
Browse files Browse the repository at this point in the history
…charset
  • Loading branch information
Dana Powers committed Jun 30, 2015
1 parent af3e0ac commit c2f4242
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_connection_charset.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import txredisapi as redis
from twisted.internet import defer
from twisted.trial import unittest

import txredisapi as redis

from tests.mixins import REDIS_HOST, REDIS_PORT

class TestConnectionCharset(unittest.TestCase):
TEST_KEY = 'txredisapi:test_key'
Expand All @@ -25,7 +27,7 @@ class TestConnectionCharset(unittest.TestCase):

@defer.inlineCallbacks
def test_charset_None(self):
db = yield redis.Connection(charset=None)
db = yield redis.Connection(REDIS_HOST, REDIS_PORT, charset=None)

yield db.set(self.TEST_KEY, self.TEST_VALUE_BINARY)
result = yield db.get(self.TEST_KEY)
Expand All @@ -37,7 +39,7 @@ def test_charset_None(self):

@defer.inlineCallbacks
def test_charset_default(self):
db = yield redis.Connection()
db = yield redis.Connection(REDIS_HOST, REDIS_PORT)

yield db.set(self.TEST_KEY, self.TEST_VALUE_UNICODE)
result = yield db.get(self.TEST_KEY)
Expand Down

0 comments on commit c2f4242

Please sign in to comment.