mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 05:45:59 +01:00
test_submitWebsiteDeletion
This commit is contained in:
@@ -8,6 +8,7 @@ from loginSystem.models import Administrator, ACL
|
||||
from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging
|
||||
import requests
|
||||
import time
|
||||
import ftp
|
||||
# Create your tests here.
|
||||
|
||||
|
||||
@@ -52,4 +53,16 @@ class TestWebsiteManagement(TestCase):
|
||||
self.assertEqual(exists, 1)
|
||||
|
||||
|
||||
def test_submitWebsiteDeletion(self):
|
||||
|
||||
## Login
|
||||
|
||||
data_ret = {'websiteName': 'hello.cyberpanel.xyz'}
|
||||
|
||||
response = self.MakeRequest('websites/submitWebsiteDeletion', data_ret)
|
||||
time.sleep(5)
|
||||
|
||||
self.assertEqual(response['status'], 1)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user