mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Test suite enhancements:
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
This commit is contained in:
committed by
Dave Page
parent
2b13d55016
commit
81e2bc1e80
@@ -12,10 +12,24 @@ import os
|
||||
|
||||
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
with open(CURRENT_PATH + '/test_config.json') as data_file:
|
||||
config_data = json.load(data_file)
|
||||
# with open(CURRENT_PATH + '/test_config.json') as data_file:
|
||||
# config_data = json.load(data_file)
|
||||
#
|
||||
# with open(CURRENT_PATH + '/test_advanced_config.json') as data_file:
|
||||
# advanced_config_data = json.load(data_file)
|
||||
|
||||
with open(CURRENT_PATH + '/test_advanced_config.json') as data_file:
|
||||
advanced_config_data = json.load(data_file)
|
||||
try:
|
||||
with open(CURRENT_PATH + '/test_config.json') as data_file:
|
||||
config_data = json.load(data_file)
|
||||
except:
|
||||
with open(CURRENT_PATH + '/test_config.json.in') as data_file:
|
||||
config_data = json.load(data_file)
|
||||
|
||||
try:
|
||||
with open(CURRENT_PATH + '/test_advanced_config.json') as data_file:
|
||||
advanced_config_data = json.load(data_file)
|
||||
except:
|
||||
with open(CURRENT_PATH + '/test_advanced_config.json.in') as data_file:
|
||||
advanced_config_data = json.load(data_file)
|
||||
|
||||
pickle_path = os.path.join(CURRENT_PATH, 'parent_id.pkl')
|
||||
|
||||
Reference in New Issue
Block a user