Skip to content
Snippets Groups Projects
Commit b9a530cb authored by florian's avatar florian
Browse files

TST: Add tests for is_list and is_ref

parent 5d70acf8
No related branches found
No related tags found
1 merge request!7ENH: Implement queries and entity retrieval
......@@ -148,9 +148,12 @@ using CaosDB
# @test CaosDB.Entity.get_value(
# CaosDB.Entity.get_properties(rec_with_parent_and_props)[1],
# ) == "2"
@test CaosDB.Entity.get_datatype(
type, is_ref, is_list = CaosDB.Entity.get_datatype(
CaosDB.Entity.get_properties(rec_with_parent_and_props)[2],
)[1] == "TEXT"
)
@test type == "TEXT"
@test is_ref == false
@test is_list == false
@test CaosDB.Entity.get_id(
CaosDB.Entity.get_properties(rec_with_parent_and_props)[2],
) == "id_of_property_2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment