Skip to content
Snippets Groups Projects
Commit 5a5c1a8d authored by Henrik tom Woerden's avatar Henrik tom Woerden
Browse files

Merge branch 'fix_long-descr' into 'dev'

Fix long descr

See merge request bmp-caosdb/caosdb-pyinttest!9
parents a8e4d76a 0a82a8fb
No related branches found
No related tags found
No related merge requests found
......@@ -26,8 +26,11 @@
@author: tf
"""
import caosdb as db
from caosdb import Container, Property, RecordType, Record, execute_query, Info, get_connection
from nose.tools import assert_true, assert_not_equals, assert_equals, assert_is_not_none, nottest, assert_raises, with_setup # @UnresolvedImport
from caosdb import (Container, Info, Property, Record, RecordType,
execute_query, get_connection)
from nose.tools import (assert_equals, assert_is_not_none, # @UnresolvedImport
assert_not_equals, assert_raises, assert_true, nottest,
with_setup)
def setup():
......@@ -286,7 +289,8 @@ def test_long_description():
try:
longstr = 'desc_'
while len(longstr) < 100000:
while len(longstr) < 50000:
longstr += "a"
rt = RecordType(
......@@ -551,12 +555,15 @@ def test_cache_performance():
t2 = 0.0
n = 10
while t2 < 30 and n <= results:
fetch = Container()
i = 0
for e in c:
i += 1
fetch.append(Record(id=e.id))
if i >= n:
break
......@@ -568,9 +575,11 @@ def test_cache_performance():
fetch = Container()
i = 0
for e in c:
i += 1
fetch.append(Record(id=e.id))
if i >= n:
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment