File size: 741 Bytes
211843b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import requests
import unittest
uri = "http://0.0.0.0:7860"
#uri = "http://192.168.0.10:5000"
class RevisionBankAuth(unittest.TestCase):
    def signup(self):
        response = requests.post(f"{uri}/signupapi",json={"email":"[email protected]","password":"kya63amari"})
        print(response.json())
    def signin(self):
        response = requests.post(f"{uri}/loginapi",json={"email":"[email protected]","password":"kya63amari"})
        print(response.json())
    def checkgeneric(self):
        response = requests.post(f"{uri}/forgotpassword",json={"email":"[email protected]","password":"kya63amari"})
        print(response.json())
        

    
        


if __name__ == "__main__":
    unittest.main()