Skip to content
Snippets Groups Projects
Verified Commit 8ce04c21 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

STY: autopep8'ed test_issues_server.py

parent 6601393b
No related branches found
No related tags found
1 merge request!35Add tests for https://gitlab.com/caosdb/caosdb-server/-/issues/145
Pipeline #24610 failed
This commit is part of merge request !35. Comments created here will be created in the context of that merge request.
......@@ -861,10 +861,12 @@ def test_145():
db.Property("TestPropDouble", datatype=db.DOUBLE).add_parent("TestProp").insert()
db.RecordType("TestRT").insert()
rec1 = db.Record("TestRec1").add_parent("TestRT").add_property("TestPropInt", 1_000_000_000).insert()
rec1 = db.Record("TestRec1").add_parent("TestRT").add_property(
"TestPropInt", 1_000_000_000).insert()
assert rec1.get_property("TestPropInt").value == 1_000_000_000
assert isinstance(rec1.get_property("TestPropInt").value, int)
rec2 = db.Record("TestRec2").add_parent("TestRT").add_property("TestPropDouble", 20_000_000_000).insert()
rec2 = db.Record("TestRec2").add_parent("TestRT").add_property(
"TestPropDouble", 20_000_000_000).insert()
assert rec2.get_property("TestPropDouble").value == 20_000_000_000
assert isinstance(rec2.get_property("TestPropDouble").value, float)
......
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