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

TST: add tests for caosdb-server#143

parent b874f258
Branches
Tags
1 merge request!60TST: Test for issue server#143.
......@@ -1256,7 +1256,7 @@ def test_196b(deny):
assert cm.value.errors[0].msg == "You are not allowed to do this."
@pytest.mark.parametrize("num", ["1e+23", "5e22", "2e-323", "2E-323", "5E22", "1E+23"])
@pytest.mark.parametrize("num", ["1e+23", "5e22", "2e-323", "2E-323", "5E22", "1E+23", "+1E+23"])
def test_143(num):
"""https://gitlab.com/caosdb/caosdb-server/-/issues/144"""
db.Property(name="scientific_notation", datatype=db.DOUBLE).insert()
......@@ -1273,7 +1273,7 @@ def test_143(num):
db.execute_query(query, unique=True)
@pytest.mark.parametrize("num", ["1 e+23", "- 5e22", "2e -323", "2E- 323", "5 E 22", "1 E+ 23"])
@pytest.mark.parametrize("num", ["1 e+23", "- 5e22", "2e -323", "2E- 323", "5 E 22", "1 E+ 23", "+ 1"])
def test_143_white_space(num):
"""https://gitlab.com/caosdb/caosdb-server/-/issues/144"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment