Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Tests/test_amit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Sumit is G.O.A.T......
first commit
2nd commit
3rd commit
1 change: 1 addition & 0 deletions Tests/test_amit_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
amit is goat
2 changes: 2 additions & 0 deletions Tests/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
baseUrl = "https://reqres.in/"

def test_successful_registration() :
surname="malbari"
path = "api/register"
response = requests.post(url=baseUrl+path,json=json.loads('{"email": "[email protected]","password": "'+randomDigits(5)+'"}'))
responseJson = json.loads(response.text)
Expand All @@ -14,6 +15,7 @@ def test_successful_registration() :


def test_unsuccessful_registration() :
middlename="anil"
path = "api/register"
response = requests.post(url=baseUrl+path,json=json.loads('{"email": "[email protected]"}'))
responseJson = json.loads(response.text)
Expand Down
Empty file added Tests/test_sumit.py
Empty file.
1 change: 1 addition & 0 deletions Tests/test_sumit_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sumit is great
1 change: 1 addition & 0 deletions Tests/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
baseUrl = "https://reqres.in/"

def test_fetch_user() :
name="amit"
path = "api/users/2"
response = requests.get(url=baseUrl+path)
responseJson = json.loads(response.text)
Expand Down