Skip to content

Commit 613230c

Browse files
authored
Consolidate remote config tests into same directory/file (#4031)
1 parent 51c926e commit 613230c

File tree

2 files changed

+19
-24
lines changed

2 files changed

+19
-24
lines changed

tests/remote_config/test_remote_configuration.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@
2121
from utils.tools import logger
2222

2323

24+
@rfc("https://docs.google.com/document/d/1bUVtEpXNTkIGvLxzkNYCxQzP2X9EK9HMBLHWXr_5KLM/edit#heading=h.vy1jegxy7cuc")
25+
@features.remote_config_object_supported
26+
class Test_NoError:
27+
"""A library should apply with no error all remote config payload."""
28+
29+
def test_no_error(self):
30+
def no_error(data):
31+
config_states = (
32+
data.get("request", {}).get("content", {}).get("client", {}).get("state", {}).get("config_states", {})
33+
)
34+
35+
for state in config_states:
36+
error = state.get("apply_error", None)
37+
if error is not None:
38+
raise Exception(f"Error in remote config application: {error}")
39+
40+
interfaces.library.validate_remote_configuration(no_error, success_by_default=True)
41+
42+
2443
@rfc("https://docs.google.com/document/d/1u_G7TOr8wJX0dOM_zUDKuRJgxoJU_hVTd5SeaMucQUs/edit#heading=h.octuyiil30ph")
2544
@features.remote_config_object_supported
2645
class RemoteConfigurationFieldsBasicTests:

tests/test_remote_config.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)