We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36f6b6b commit ee3aa67Copy full SHA for ee3aa67
1 file changed
tests/base.py
@@ -292,13 +292,8 @@ def __init__(self):
292
# Look for any environment variables that match our test
293
# configuration naming of "SG_{KEY}". Default is None.
294
value = os.environ.get('SG_%s' % (str(key).upper()))
295
-
296
if key in ['mock']:
297
- if value == None or str(value).lower() in ['true','1']:
298
- value = True
299
- else:
300
- value = False
301
+ value = (value == None) or (str(value).lower() in ['true','1']):
302
setattr(self, key, value)
303
304
def config_keys(self):
0 commit comments