Skip to content

Commit d029dd2

Browse files
authored
Merge pull request #1 from dimitri-yatsenko/jeroen944
add test for issue #944
2 parents fbc47da + 7d2344e commit d029dd2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

tests/test_aggr_regressions.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
"""
44

55
import itertools
6-
from nose.tools import assert_equal, raises
6+
from nose.tools import assert_equal
77
import datajoint as dj
88
from . import PREFIX, CONN_INFO
9-
from . import schema_simple
109
schema = dj.Schema(PREFIX + '_aggr_regress', connection=dj.conn(**CONN_INFO))
1110

1211
# --------------- ISSUE 386 -------------------
@@ -102,7 +101,3 @@ def test_issue558_part1():
102101
def test_issue558_part2():
103102
d = dict(id=3, id2=5)
104103
assert_equal(len(X & d), len((X & d).proj(id2='3')))
105-
106-
107-
def test_aggr_with_proj():
108-
schema_simple.A.aggr(schema_simple.D.proj(m='id_l'), ..., n='max(m) - min(m)')

tests/test_groupby.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from .schema_simple import A, D
2+
3+
4+
def test_aggr_with_proj():
5+
# issue #944 - only breaks with MariaDB
6+
A.aggr(D.proj(m='id_l'), ..., n='max(m) - min(m)')

0 commit comments

Comments
 (0)