mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 15:26:46 -06:00
Fixed API test caes for Domain node.
This commit is contained in:
parent
332351efaf
commit
82935ad3be
@ -100,8 +100,8 @@ class DomainReverseEngineeredSQLTestCase(BaseTestGenerator):
|
|||||||
|
|
||||||
# Replace multiple spaces with one space and check the expected sql
|
# Replace multiple spaces with one space and check the expected sql
|
||||||
sql = re.sub('\s+', ' ', orig_sql).strip()
|
sql = re.sub('\s+', ' ', orig_sql).strip()
|
||||||
expected_sql = '-- DOMAIN: {0}.{1} -- DROP DOMAIN {0}.{1}; ' \
|
expected_sql = '-- DOMAIN: {0}.{1} -- DROP DOMAIN IF EXISTS ' \
|
||||||
'CREATE DOMAIN {0}.{1} {2} ' \
|
'{0}.{1}; CREATE DOMAIN {0}.{1} {2} ' \
|
||||||
'ALTER DOMAIN {0}.{1} OWNER' \
|
'ALTER DOMAIN {0}.{1} OWNER' \
|
||||||
' TO {3};'.format(self.schema_name,
|
' TO {3};'.format(self.schema_name,
|
||||||
self.test_data['domain_name'],
|
self.test_data['domain_name'],
|
||||||
|
Loading…
Reference in New Issue
Block a user