mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-01 07:48:03 -06:00
1. The user will specify the tablespace path in test_config.json.in 2. If tablespace path not found, skip the test cases for that server(Only tablespace test cases) 3. Add the skipped test summary in the test result. (Now it's showing on console + in log file, but need to update in a final enhanced test summary report. Which is research point we will work on that after finishing all nodes API test cases) 4. Removed the test_ prefix from the values in the config files. 5. Add tablespace and roles tests
44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
# ##########################################################################
|
|
#
|
|
# #pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# #Copyright (C) 2013 - 2016, The pgAdmin Development Team
|
|
# #This software is released under the PostgreSQL Licence
|
|
#
|
|
# ##########################################################################
|
|
|
|
|
|
from pgadmin.utils.route import BaseTestGenerator
|
|
from regression import test_utils as utils
|
|
|
|
|
|
class LogoutTest(BaseTestGenerator):
|
|
"""
|
|
This class verifies the logout functionality; provided the user is already
|
|
logged-in. Dictionary parameters define the scenario appended by test
|
|
name.
|
|
"""
|
|
|
|
scenarios = [
|
|
# This test case validate the logout page
|
|
('Logging Out', dict(respdata='Redirecting...'))
|
|
]
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
pass
|
|
|
|
def runTest(self):
|
|
"""This function checks the logout functionality."""
|
|
|
|
response = self.tester.get('/logout')
|
|
self.assertIn(self.respdata, response.data.decode('utf8'))
|
|
|
|
@classmethod
|
|
def tearDownClass(cls):
|
|
"""
|
|
We need to again login the test client as soon as test scenarios
|
|
finishes.
|
|
"""
|
|
utils.login_tester_account(cls.tester)
|