diff options
| author | LV-426 <lv-426@taproot.org.il> | 2015-01-02 17:17:03 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2015-01-02 17:56:27 +0200 |
| commit | ae124e26d1453eae3159056ad6f0576a8a0966a9 (patch) | |
| tree | 931f56b43f3c15940033f215ca3a3ba0b72d9cc0 /src/server-tests | |
| parent | f5f952e070a4057c935218e4ff0df6a592f4c92a (diff) | |
misc changes: newline at end of file, etc.
Diffstat (limited to 'src/server-tests')
| -rw-r--r-- | src/server-tests/neo4j_test_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server-tests/neo4j_test_util.py b/src/server-tests/neo4j_test_util.py index d5aa640a..e8e48895 100644 --- a/src/server-tests/neo4j_test_util.py +++ b/src/server-tests/neo4j_test_util.py @@ -20,7 +20,7 @@ def flush_db(db_ctl): db_ctl.exec_cypher_query('match (n) optional match (n)-[r]-() delete n,r') -def gen_rand_data(db_ctl, lim_n=128, lim_r=256, prob_link_create = 0.3): +def gen_rand_data(db_ctl, lim_n=128, lim_r=256, prob_link_create=0.3): """ generate random DB data @@ -44,7 +44,7 @@ def gen_rand_data(db_ctl, lim_n=128, lim_r=256, prob_link_create = 0.3): 'with s,d', 'limit %d' % (lim_r - 1), 'where rand() < %.2f' % (prob_link_create), - 'create (s)-[:%s {l_attr_0:toInt(%d * rand())}]->(d)' % (r_label,lim_r)] + 'create (s)-[:%s {l_attr_0:toInt(%d * rand())}]->(d)' % (r_label, lim_r)] q = ' '.join(q_arr) op = dbc.DBO_cypher_query(q) |
