Skip to content

Commit 966eac7

Browse files
Gerald W. LesterGerald W. Lester
Gerald W. Lester
authored and
Gerald W. Lester
committed
correct when match on tests
1 parent 82573db commit 966eac7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/functional/feature_flags/test_feature_flags.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ def test_flags_not_eqaul_no_match(mocker, config):
815815
"default": expected_value,
816816
"rules": {
817817
"tenant id not equals 345345435": {
818-
"when_match": False,
818+
"when_match": True,
819819
"conditions": [
820820
{
821821
"action": RuleAction.NOT_EQUALS.value,
@@ -838,7 +838,7 @@ def test_flags_not_eqaul_match(mocker, config):
838838
"default": expected_value,
839839
"rules": {
840840
"tenant id not equals 345345435": {
841-
"when_match": False,
841+
"when_match": True,
842842
"conditions": [
843843
{
844844
"action": RuleAction.NOT_EQUALS.value,
@@ -863,7 +863,7 @@ def test_flags_less_than_no_match_1(mocker, config):
863863
"default": expected_value,
864864
"rules": {
865865
"Date less than 2021.10.31": {
866-
"when_match": False,
866+
"when_match": True,
867867
"conditions": [
868868
{
869869
"action": RuleAction.KEY_LESS_THAN_VALUE.value,
@@ -886,7 +886,7 @@ def test_flags_less_than_no_match_2(mocker, config):
886886
"default": expected_value,
887887
"rules": {
888888
"Date less than 2021.10.31": {
889-
"when_match": False,
889+
"when_match": True,
890890
"conditions": [
891891
{
892892
"action": RuleAction.KEY_LESS_THAN_VALUE.value,
@@ -909,7 +909,7 @@ def test_flags_less_than_match(mocker, config):
909909
"default": expected_value,
910910
"rules": {
911911
"Date less than 2021.10.31": {
912-
"when_match": False,
912+
"when_match": True,
913913
"conditions": [
914914
{
915915
"action": RuleAction.KEY_LESS_THAN_VALUE.value,
@@ -933,7 +933,7 @@ def test_flags_less_than_or_equal_no_match(mocker, config):
933933
"default": expected_value,
934934
"rules": {
935935
"Date less than or equal 2021.10.31": {
936-
"when_match": False,
936+
"when_match": True,
937937
"conditions": [
938938
{
939939
"action": RuleAction.KEY_LESS_THAN_OR_EQUAL_VALUE.value,
@@ -956,7 +956,7 @@ def test_flags_less_than_or_equal_match_1(mocker, config):
956956
"default": expected_value,
957957
"rules": {
958958
"Date less than or equal 2021.10.31": {
959-
"when_match": False,
959+
"when_match": True,
960960
"conditions": [
961961
{
962962
"action": RuleAction.KEY_LESS_THAN_OR_EQUAL_VALUE.value,
@@ -980,7 +980,7 @@ def test_flags_less_than_or_equal_match_2(mocker, config):
980980
"default": expected_value,
981981
"rules": {
982982
"Date less than or equal 2021.10.31": {
983-
"when_match": False,
983+
"when_match": True,
984984
"conditions": [
985985
{
986986
"action": RuleAction.KEY_LESS_THAN_OR_EQUAL_VALUE.value,
@@ -1004,7 +1004,7 @@ def test_flags_greater_than_no_match_1(mocker, config):
10041004
"default": expected_value,
10051005
"rules": {
10061006
"Date greater than 2021.10.31": {
1007-
"when_match": False,
1007+
"when_match": True,
10081008
"conditions": [
10091009
{
10101010
"action": RuleAction.KEY_GREATER_THAN_VALUE.value,
@@ -1027,7 +1027,7 @@ def test_flags_greater_than_no_match_2(mocker, config):
10271027
"default": expected_value,
10281028
"rules": {
10291029
"Date greater than 2021.10.31": {
1030-
"when_match": False,
1030+
"when_match": True,
10311031
"conditions": [
10321032
{
10331033
"action": RuleAction.KEY_GREATER_THAN_VALUE.value,
@@ -1050,7 +1050,7 @@ def test_flags_greater_than_match(mocker, config):
10501050
"default": expected_value,
10511051
"rules": {
10521052
"Date greater than 2021.10.31": {
1053-
"when_match": False,
1053+
"when_match": True,
10541054
"conditions": [
10551055
{
10561056
"action": RuleAction.KEY_GREATER_THAN_VALUE.value,
@@ -1074,7 +1074,7 @@ def test_flags_greater_than_or_equal_no_match(mocker, config):
10741074
"default": expected_value,
10751075
"rules": {
10761076
"Date greater than or equal 2021.10.31": {
1077-
"when_match": False,
1077+
"when_match": True,
10781078
"conditions": [
10791079
{
10801080
"action": RuleAction.KEY_GREATER_THAN_OR_EQUAL_VALUE.value,
@@ -1097,7 +1097,7 @@ def test_flags_greater_than_or_equal_match_1(mocker, config):
10971097
"default": expected_value,
10981098
"rules": {
10991099
"Date greater than or equal 2021.10.31": {
1100-
"when_match": False,
1100+
"when_match": True,
11011101
"conditions": [
11021102
{
11031103
"action": RuleAction.KEY_GREATER_THAN_OR_EQUAL_VALUE.value,
@@ -1121,7 +1121,7 @@ def test_flags_greater_than_or_equal_match_2(mocker, config):
11211121
"default": expected_value,
11221122
"rules": {
11231123
"Date greater than or equal 2021.10.31": {
1124-
"when_match": False,
1124+
"when_match": True,
11251125
"conditions": [
11261126
{
11271127
"action": RuleAction.KEY_GREATER_THAN_OR_EQUAL_VALUE.value,

0 commit comments

Comments
 (0)