Skip to content

Commit 71b31b2

Browse files
committed
UT: Remove OTP feature flag test
1 parent 2b26c1f commit 71b31b2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

monkey/tests/unit_tests/infection_monkey/test_monkey.py

-12
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
from tests.data_for_tests.otp import TEST_OTP
55

66
from common.common_consts import AGENT_OTP_ENVIRONMENT_VARIABLE
7-
from infection_monkey.model import OTP_FLAG
87
from infection_monkey.monkey import InfectionMonkey
98

109

1110
@pytest.fixture(autouse=True)
1211
def configure_environment_variables(monkeypatch):
1312
monkeypatch.setenv(AGENT_OTP_ENVIRONMENT_VARIABLE, TEST_OTP.get_secret_value())
14-
monkeypatch.setenv(OTP_FLAG, True)
1513

1614

1715
def test_get_otp(monkeypatch):
@@ -23,13 +21,3 @@ def test_get_otp__no_otp(monkeypatch):
2321
monkeypatch.delenv(AGENT_OTP_ENVIRONMENT_VARIABLE)
2422
with pytest.raises(Exception):
2523
InfectionMonkey._get_otp()
26-
27-
28-
def test_get_otp__feature_flag_disabled(monkeypatch):
29-
try:
30-
monkeypatch.delenv(OTP_FLAG)
31-
except KeyError:
32-
pass
33-
34-
# No need for a constant, this code is testing a feature flag that will be removed.
35-
assert InfectionMonkey._get_otp().get_secret_value() == "PLACEHOLDER_OTP"

0 commit comments

Comments
 (0)