Skip to content

Commit a233ad9

Browse files
authored
Merge pull request #353 from splitio/dw-rename-apikey-factory
Rename api key in factory
2 parents 18e7183 + bb0a666 commit a233ad9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

splitio/client/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def get_factory(api_key, **kwargs):
667667
if _INSTANTIATED_FACTORIES:
668668
if api_key in _INSTANTIATED_FACTORIES:
669669
_LOGGER.warning(
670-
"factory instantiation: You already have %d %s with this API Key. "
670+
"factory instantiation: You already have %d %s with this SDK Key. "
671671
"We recommend keeping only one instance of the factory at all times "
672672
"(Singleton pattern) and reusing it throughout your application.",
673673
_INSTANTIATED_FACTORIES[api_key],

tests/client/test_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def _make_factory_with_apikey(apikey, *_, **__):
430430
factory2 = get_factory('some_api_key')
431431
assert _INSTANTIATED_FACTORIES['some_api_key'] == 2
432432
assert factory_module_logger.warning.mock_calls == [mocker.call(
433-
"factory instantiation: You already have %d %s with this API Key. "
433+
"factory instantiation: You already have %d %s with this SDK Key. "
434434
"We recommend keeping only one instance of the factory at all times "
435435
"(Singleton pattern) and reusing it throughout your application.",
436436
1,
@@ -441,7 +441,7 @@ def _make_factory_with_apikey(apikey, *_, **__):
441441
factory3 = get_factory('some_api_key')
442442
assert _INSTANTIATED_FACTORIES['some_api_key'] == 3
443443
assert factory_module_logger.warning.mock_calls == [mocker.call(
444-
"factory instantiation: You already have %d %s with this API Key. "
444+
"factory instantiation: You already have %d %s with this SDK Key. "
445445
"We recommend keeping only one instance of the factory at all times "
446446
"(Singleton pattern) and reusing it throughout your application.",
447447
2,

0 commit comments

Comments
 (0)