Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_configuration_settings(self):
import redislite.configuration
result = redislite.configuration.settings()
del result['save'] # Save is a list which doesn't work with set
result_set = set(result.items())
expected_subset = set(
{
'dbdir': './',
'daemonize': 'yes',
'unixsocketperm': '700',
'timeout': '0',
'dbfilename': 'redis.db'
}.items()
)
self.assertTrue(
expected_subset.issubset(result_set)
)