Skip to content

Commit

Permalink
Update test_memcached.py (#228)
Browse files Browse the repository at this point in the history
Fix CI per #227 (comment)
  • Loading branch information
jonathanspw authored May 3, 2023
1 parent 056d68f commit c089668
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_memcached.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ def test_uses_pylibmc_client(self):

def test_dont_use_pylibmc_client(self):
from beaker.ext.memcached import _load_client
load_mock = mock.Mock()
load_mock = unittest.mock.Mock()
load_mock.return_value = _load_client('memcache')
with mock.patch('beaker.ext.memcached._load_client', load_mock):
with unittest.mock.patch('beaker.ext.memcached._load_client', load_mock):
cache = Cache('test', data_dir='./cache', url=mc_url, type="ext:memcached")
assert not isinstance(cache.namespace, memcached.PyLibMCNamespaceManager)
assert isinstance(cache.namespace, memcached.MemcachedNamespaceManager)
Expand Down

0 comments on commit c089668

Please sign in to comment.