1
0
Fork 0
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:
Felix Fontein 2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View file

@ -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)

View file

@ -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)