@@ -608,7 +608,7 @@ def test_invalid_parameter(self):
608
608
)
609
609
610
610
self .assertEqual (HTTPStatus .BAD_REQUEST , channel .code , msg = channel .json_body )
611
- self .assertEqual (Codes .UNKNOWN , channel .json_body ["errcode" ])
611
+ self .assertEqual (Codes .INVALID_PARAM , channel .json_body ["errcode" ])
612
612
613
613
# invalid deactivated
614
614
channel = self .make_request (
@@ -618,7 +618,7 @@ def test_invalid_parameter(self):
618
618
)
619
619
620
620
self .assertEqual (HTTPStatus .BAD_REQUEST , channel .code , msg = channel .json_body )
621
- self .assertEqual (Codes .UNKNOWN , channel .json_body ["errcode" ])
621
+ self .assertEqual (Codes .INVALID_PARAM , channel .json_body ["errcode" ])
622
622
623
623
# unkown order_by
624
624
channel = self .make_request (
@@ -628,7 +628,7 @@ def test_invalid_parameter(self):
628
628
)
629
629
630
630
self .assertEqual (HTTPStatus .BAD_REQUEST , channel .code , msg = channel .json_body )
631
- self .assertEqual (Codes .UNKNOWN , channel .json_body ["errcode" ])
631
+ self .assertEqual (Codes .INVALID_PARAM , channel .json_body ["errcode" ])
632
632
633
633
# invalid search order
634
634
channel = self .make_request (
@@ -638,7 +638,7 @@ def test_invalid_parameter(self):
638
638
)
639
639
640
640
self .assertEqual (HTTPStatus .BAD_REQUEST , channel .code , msg = channel .json_body )
641
- self .assertEqual (Codes .UNKNOWN , channel .json_body ["errcode" ])
641
+ self .assertEqual (Codes .INVALID_PARAM , channel .json_body ["errcode" ])
642
642
643
643
def test_limit (self ):
644
644
"""
@@ -2896,7 +2896,7 @@ def test_invalid_parameter(self, method: str):
2896
2896
)
2897
2897
2898
2898
self .assertEqual (HTTPStatus .BAD_REQUEST , channel .code , msg = channel .json_body )
2899
- self .assertEqual (Codes .UNKNOWN , channel .json_body ["errcode" ])
2899
+ self .assertEqual (Codes .INVALID_PARAM , channel .json_body ["errcode" ])
2900
2900
2901
2901
# invalid search order
2902
2902
channel = self .make_request (
@@ -2906,7 +2906,7 @@ def test_invalid_parameter(self, method: str):
2906
2906
)
2907
2907
2908
2908
self .assertEqual (HTTPStatus .BAD_REQUEST , channel .code , msg = channel .json_body )
2909
- self .assertEqual (Codes .UNKNOWN , channel .json_body ["errcode" ])
2909
+ self .assertEqual (Codes .INVALID_PARAM , channel .json_body ["errcode" ])
2910
2910
2911
2911
# negative limit
2912
2912
channel = self .make_request (
0 commit comments