mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 21:17:20 +00:00
Reformat everything.
This commit is contained in:
parent
3f2213791a
commit
340ff8586d
1008 changed files with 61301 additions and 58309 deletions
4
tests/unit/plugins/cache/test_memcached.py
vendored
4
tests/unit/plugins/cache/test_memcached.py
vendored
|
|
@ -7,11 +7,11 @@ from __future__ import annotations
|
|||
|
||||
import pytest
|
||||
|
||||
pytest.importorskip('memcache')
|
||||
pytest.importorskip("memcache")
|
||||
|
||||
from ansible.plugins.loader import cache_loader
|
||||
from ansible_collections.community.general.plugins.cache.memcached import CacheModule as MemcachedCache
|
||||
|
||||
|
||||
def test_memcached_cachemodule():
|
||||
assert isinstance(cache_loader.get('community.general.memcached'), MemcachedCache)
|
||||
assert isinstance(cache_loader.get("community.general.memcached"), MemcachedCache)
|
||||
|
|
|
|||
10
tests/unit/plugins/cache/test_redis.py
vendored
10
tests/unit/plugins/cache/test_redis.py
vendored
|
|
@ -7,7 +7,7 @@ from __future__ import annotations
|
|||
|
||||
import pytest
|
||||
|
||||
pytest.importorskip('redis')
|
||||
pytest.importorskip("redis")
|
||||
|
||||
from ansible.plugins.loader import cache_loader
|
||||
from ansible_collections.community.general.plugins.cache.redis import CacheModule as RedisCache
|
||||
|
|
@ -15,11 +15,11 @@ from ansible_collections.community.general.plugins.cache.redis import CacheModul
|
|||
|
||||
def test_redis_cachemodule():
|
||||
# The _uri option is required for the redis plugin
|
||||
connection = '127.0.0.1:6379:1'
|
||||
assert isinstance(cache_loader.get('community.general.redis', **{'_uri': connection}), RedisCache)
|
||||
connection = "127.0.0.1:6379:1"
|
||||
assert isinstance(cache_loader.get("community.general.redis", **{"_uri": connection}), RedisCache)
|
||||
|
||||
|
||||
def test_redis_cachemodule_2():
|
||||
# The _uri option is required for the redis plugin
|
||||
connection = '[::1]:6379:1'
|
||||
assert isinstance(cache_loader.get('community.general.redis', **{'_uri': connection}), RedisCache)
|
||||
connection = "[::1]:6379:1"
|
||||
assert isinstance(cache_loader.get("community.general.redis", **{"_uri": connection}), RedisCache)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue