@@ -670,11 +670,11 @@ def test_create_regular_user_transactions_as_regular_user(self):
670670 "client_wallet_account" : self .regular_user_wallet .id
671671 }
672672 if payload .get ('amount' , 0 ) > 0 :
673- transaction_type = str ( ClientWalletTransaction .Type .DEPOSIT .value )
673+ transaction_type = ClientWalletTransaction .Type .DEPOSIT .value
674674 elif payload .get ('amount' , 0 ) < 0 :
675- transaction_type = str ( ClientWalletTransaction .Type .WITHDRAW .value )
675+ transaction_type = ClientWalletTransaction .Type .WITHDRAW .value
676676 else :
677- transaction_type = str ( ClientWalletTransaction .Type .TESTING .value )
677+ transaction_type = ClientWalletTransaction .Type .TESTING .value
678678 response_data = {
679679 ** payload ,
680680 "amount" : str (payload .get ('amount' )),
@@ -734,11 +734,11 @@ def test_create_regular_user_transactions_as_staff_user(self):
734734 "client_wallet_account" : self .regular_user_wallet .id
735735 }
736736 if payload .get ('amount' , 0 ) > 0 :
737- transaction_type = str ( ClientWalletTransaction .Type .DEPOSIT .value )
737+ transaction_type = ClientWalletTransaction .Type .DEPOSIT .value
738738 elif payload .get ('amount' , 0 ) < 0 :
739- transaction_type = str ( ClientWalletTransaction .Type .WITHDRAW .value )
739+ transaction_type = ClientWalletTransaction .Type .WITHDRAW .value
740740 else :
741- transaction_type = str ( ClientWalletTransaction .Type .TESTING .value )
741+ transaction_type = ClientWalletTransaction .Type .TESTING .value
742742 response_data = {
743743 ** payload ,
744744 "amount" : str (payload .get ('amount' )),
@@ -778,11 +778,11 @@ def test_create_staff_user_transactions_as_staff_user(self):
778778 "client_wallet_account" : user_wallet .id
779779 }
780780 if payload .get ('amount' , 0 ) > 0 :
781- transaction_type = str ( ClientWalletTransaction .Type .DEPOSIT .value )
781+ transaction_type = ClientWalletTransaction .Type .DEPOSIT .value
782782 elif payload .get ('amount' , 0 ) < 0 :
783- transaction_type = str ( ClientWalletTransaction .Type .WITHDRAW .value )
783+ transaction_type = ClientWalletTransaction .Type .WITHDRAW .value
784784 else :
785- transaction_type = str ( ClientWalletTransaction .Type .TESTING .value )
785+ transaction_type = ClientWalletTransaction .Type .TESTING .value
786786 response_data = {
787787 ** payload ,
788788 "amount" : str (payload .get ('amount' )),
0 commit comments