mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 23:36:11 +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
|
from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging
|
||||||
import requests
|
import requests
|
||||||
import time
|
import time
|
||||||
|
import ftp
|
||||||
# Create your tests here.
|
# Create your tests here.
|
||||||
|
|
||||||
|
|
||||||
@@ -52,4 +53,16 @@ class TestWebsiteManagement(TestCase):
|
|||||||
self.assertEqual(exists, 1)
|
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