File tree 1 file changed +0
-12
lines changed
monkey/tests/unit_tests/infection_monkey
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 4
4
from tests .data_for_tests .otp import TEST_OTP
5
5
6
6
from common .common_consts import AGENT_OTP_ENVIRONMENT_VARIABLE
7
- from infection_monkey .model import OTP_FLAG
8
7
from infection_monkey .monkey import InfectionMonkey
9
8
10
9
11
10
@pytest .fixture (autouse = True )
12
11
def configure_environment_variables (monkeypatch ):
13
12
monkeypatch .setenv (AGENT_OTP_ENVIRONMENT_VARIABLE , TEST_OTP .get_secret_value ())
14
- monkeypatch .setenv (OTP_FLAG , True )
15
13
16
14
17
15
def test_get_otp (monkeypatch ):
@@ -23,13 +21,3 @@ def test_get_otp__no_otp(monkeypatch):
23
21
monkeypatch .delenv (AGENT_OTP_ENVIRONMENT_VARIABLE )
24
22
with pytest .raises (Exception ):
25
23
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"
You can’t perform that action at this time.
0 commit comments