RLTest 0.7.26__tar.gz → 0.7.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RLTest
3
- Version: 0.7.26
3
+ Version: 0.7.28
4
4
  Summary: Redis Modules Test Framework, allow to run tests on redis and modules on a variety of environments
5
5
  License: BSD-3-Clause
6
6
  License-File: LICENSE
@@ -1067,7 +1067,7 @@ class RLTest:
1067
1067
  if self.testsFailed:
1068
1068
  if self.args.failed_tests_file:
1069
1069
  with open(self.args.failed_tests_file, 'w') as file:
1070
- for test, _ in self.testsFailed:
1070
+ for test in self.testsFailed.keys():
1071
1071
  file.write(test.split(' ')[0] + "\n")
1072
1072
 
1073
1073
  print(Colors.Bold('Failed Tests Summary:'))
@@ -154,6 +154,8 @@ class Defaults:
154
154
  redis_config_file = None
155
155
  dualTLS = False
156
156
  startup_grace_secs = 0.1
157
+ # Lets a consumer substitute a subclass for bare Env(...) construction (e.g. enterprise test envs).
158
+ env_class = None
157
159
 
158
160
  def getKwargs(self):
159
161
  kwargs = {
@@ -188,6 +190,11 @@ class Env:
188
190
  'useRdbPreamble', 'forceTcp', 'enableDebugCommand', 'enableProtectedConfigs',
189
191
  'enableModuleCommand', 'protocol', 'password']
190
192
 
193
+ def __new__(cls, *args, **kwargs):
194
+ if cls is Env and Defaults.env_class is not None:
195
+ cls = Defaults.env_class
196
+ return super().__new__(cls)
197
+
191
198
  def compareEnvs(self, env):
192
199
  if env is None:
193
200
  return False
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "RLTest"
3
- version = "0.7.26"
3
+ version = "0.7.28"
4
4
  description="Redis Modules Test Framework, allow to run tests on redis and modules on a variety of environments"
5
5
  authors = ["Redis, Inc. <oss@redis.com>"]
6
6
  license = "BSD-3-Clause"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes