Skip to content

Commit

Permalink
fix pytest error
Browse files Browse the repository at this point in the history
  • Loading branch information
nevermore3 committed Oct 14, 2021
1 parent 28f051a commit d715940
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions tests/query/stateless/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,20 +148,6 @@ def test_alter_tag_succeed(self):
['age', 'int64', 'YES', T_EMPTY, T_EMPTY]]
self.check_result(resp, expect)

# alter all
resp = self.execute('ALTER TAG student drop (name),'
'ADD (gender string),'
'CHANGE (gender int)')
self.check_resp_succeeded(resp)

resp = self.execute('DESC TAG student')
self.check_resp_succeeded(resp)
expect = [['email', 'string', 'YES', T_EMPTY, T_EMPTY],
['birthday', 'timestamp', 'YES', T_EMPTY, T_EMPTY],
['age', 'int64', 'YES', T_EMPTY, T_EMPTY],
['gender', 'int64', 'YES', T_EMPTY, T_EMPTY]]
self.check_result(resp, expect)

def test_alter_tag_failed(self):
# alter ttl_col on wrong type
try:
Expand Down Expand Up @@ -304,19 +290,6 @@ def test_alter_edge_succeed(self):
['start_year', 'int64', 'YES', T_EMPTY, T_EMPTY]]
self.check_result(resp, expect)

# alter all
resp = self.execute('ALTER EDGE relationship drop (name),'
'ADD (end_year string),'
'CHANGE (end_year int)')
self.check_resp_succeeded(resp)

resp = self.execute('DESC EDGE relationship')
self.check_resp_succeeded(resp)
expect = [['email', 'string', 'YES', T_EMPTY, T_EMPTY],
['start_year', 'int64', 'YES', T_EMPTY, T_EMPTY],
['end_year', 'int64', 'YES', T_EMPTY, T_EMPTY]]
self.check_result(resp, expect)

def test_alter_edge_failed(self):
# alter ttl_col on wrong type
try:
Expand Down

0 comments on commit d715940

Please sign in to comment.