Skip to content

Commit

Permalink
fix test property
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiaocs7 committed Dec 5, 2023
1 parent 45afecd commit 4a64f41
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/graph_function_test/server/basic_operation/test_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def test_create_property_single_text():
}
code, res = Schema().create_property(body, auth=auth)
print(code, res)
assert code == 201
assert res['data_type'] == 'TEXT'
assert code == 202
assert res['property_key']['data_type'] == 'TEXT'


def test_create_property_single_int():
Expand Down Expand Up @@ -302,8 +302,8 @@ def test_get_all_property():
}
code, res = Schema().create_property(body, auth=auth)
print(code, res)
assert code == 201
assert res['data_type'] == 'INT'
assert code == 202
assert res['property_key']['data_type'] == 'INT'

code, res = Schema().get_all_properties(auth=auth)
print(code, res)
Expand All @@ -324,8 +324,8 @@ def test_get_property_by_name():
}
code, res = Schema().create_property(body, auth=auth)
print(code, res)
assert code == 201
assert res['data_type'] == 'INT'
assert code == 202
assert res['property_key']['data_type'] == 'INT'

code, res = Schema().get_property_by_name('age', auth=auth)
print(code, res)
Expand All @@ -345,12 +345,12 @@ def test_delete_property_by_name():
}
code, res = Schema().create_property(body, auth=auth)
print(code, res)
assert code == 201
assert res['data_type'] == 'INT'
assert code == 202
assert res['property_key']['data_type'] == 'INT'

code, res = Schema().delete_property_by_name('age', auth=auth)
print(code, res)
assert code == 204
assert code == 202


if __name__ == "__main__":
Expand Down

0 comments on commit 4a64f41

Please sign in to comment.