mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Bug fixes
This commit is contained in:
parent
553d84ab20
commit
24e69c1faa
1 changed files with 7 additions and 1 deletions
|
@ -3,16 +3,22 @@ import unittest
|
|||
import requests
|
||||
|
||||
#test push
|
||||
WEKAN_URL = os.getenv("WEKAN_URL", "http://localhost:80/users/login")
|
||||
WEKAN_URL = os.getenv("WEKAN_URL", "http://localhost/users/login")
|
||||
|
||||
class TestUserLogin(unittest.TestCase):
|
||||
|
||||
def test_user_login_success(self):
|
||||
|
||||
payload = {
|
||||
"username": "RabeeaFaraj",
|
||||
"password": "30fnhk03"
|
||||
}
|
||||
payload2 = {
|
||||
"username": "rabeeaFaraj",
|
||||
"password": "30fnhk03"
|
||||
}
|
||||
if WEKAN_URL== "http://localhost/users/login":
|
||||
payload = payload2
|
||||
response = requests.post(WEKAN_URL, json=payload)
|
||||
print("Status code:", response.status_code)
|
||||
print("Response JSON:", response.json())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue