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

Merge branch 'whitespace_changes' into 'master'

Whitespace changes

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