Skip to content

Commit 3ff2a85

Browse files
authored
Remove the usage of is_simple_flag (#186)
1 parent a3cf4ad commit 3ff2a85

File tree

2 files changed

+1
-57
lines changed

2 files changed

+1
-57
lines changed

posthog/test/test_client.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ def test_basic_capture_with_locally_evaluated_feature_flags(self, patch_decide):
292292
"id": 1,
293293
"name": "Beta Feature",
294294
"key": "beta-feature-local",
295-
"is_simple_flag": False,
296295
"active": True,
297296
"rollout_percentage": 100,
298297
"filters": {
@@ -321,7 +320,6 @@ def test_basic_capture_with_locally_evaluated_feature_flags(self, patch_decide):
321320
"id": 1,
322321
"name": "Beta Feature",
323322
"key": "person-flag",
324-
"is_simple_flag": True,
325323
"active": True,
326324
"filters": {
327325
"groups": [
@@ -344,7 +342,6 @@ def test_basic_capture_with_locally_evaluated_feature_flags(self, patch_decide):
344342
"id": 1,
345343
"name": "Beta Feature",
346344
"key": "false-flag",
347-
"is_simple_flag": True,
348345
"active": True,
349346
"filters": {
350347
"groups": [
@@ -396,7 +393,6 @@ def test_dont_override_capture_with_local_flags(self, patch_decide):
396393
"id": 1,
397394
"name": "Beta Feature",
398395
"key": "beta-feature-local",
399-
"is_simple_flag": False,
400396
"active": True,
401397
"rollout_percentage": 100,
402398
"filters": {
@@ -425,7 +421,6 @@ def test_dont_override_capture_with_local_flags(self, patch_decide):
425421
"id": 1,
426422
"name": "Beta Feature",
427423
"key": "person-flag",
428-
"is_simple_flag": True,
429424
"active": True,
430425
"filters": {
431426
"groups": [
@@ -1039,7 +1034,7 @@ def raise_effect():
10391034

10401035
patch_get.return_value.raiseError.side_effect = raise_effect
10411036
client = Client(FAKE_TEST_API_KEY, personal_api_key="test")
1042-
client.feature_flags = [{"key": "example", "is_simple_flag": False}]
1037+
client.feature_flags = [{"key": "example"}]
10431038

10441039
self.assertFalse(client.feature_enabled("example", "distinct_id"))
10451040

0 commit comments

Comments
 (0)