Skip to content

Commit 10e344d

Browse files
committed
Added test for comparing envs - fix2
1 parent 4484b94 commit 10e344d

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

tests/unit/test_env.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ def test_get_env_str(self):
4040
self.env.stop()
4141
assert self.env.isUp() == False
4242

43-
'''def test_compare_env(self):
43+
def test_compare_env(self):
4444
self.env = Env(env='oss', logDir=self.test_dir, redisBinaryPath=REDIS_BINARY,
4545
redisEnterpriseBinaryPath=REDIS_ENTERPRISE_BINARY, dmcBinaryPath=DMC_PROXY_BINARY)
46-
assert self.env.compareEnvs(Env(env='oss', logDir=self.test_dir, redisBinaryPath=REDIS_BINARY,
47-
redisEnterpriseBinaryPath=REDIS_ENTERPRISE_BINARY,
48-
dmcBinaryPath=DMC_PROXY_BINARY)) is True
49-
assert self.env.compareEnvs(Env(env='oss', logDir=self.test_dir, redisBinaryPath=REDIS_BINARY,
50-
redisEnterpriseBinaryPath=REDIS_ENTERPRISE_BINARY,
51-
dmcBinaryPath=DMC_PROXY_BINARY, useAof=True)) is False'''
46+
env = Env(env='oss', logDir=self.test_dir, redisBinaryPath=REDIS_BINARY,
47+
redisEnterpriseBinaryPath=REDIS_ENTERPRISE_BINARY, dmcBinaryPath=DMC_PROXY_BINARY)
48+
assert self.env.compareEnvs(env) is True
49+
env.stop()
50+
env = Env(env='oss', logDir=self.test_dir, redisBinaryPath=REDIS_BINARY,
51+
redisEnterpriseBinaryPath=REDIS_ENTERPRISE_BINARY, dmcBinaryPath=DMC_PROXY_BINARY, useAof=True)
52+
assert self.env.compareEnvs(env) is False
53+
env.stop()
54+
self.env.stop()
5255

5356
def test_get_connection(self):
5457
pass

0 commit comments

Comments
 (0)