Skip to content

Commit ce16d0e

Browse files
committed
Made test more clear using assert.
1 parent 13a162a commit ce16d0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_fetch.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .schema import Parent
1010
import datajoint as dj
1111
import os
12-
12+
from pymysql import err
1313

1414
class TestFetch:
1515

@@ -292,4 +292,8 @@ def test_query_caching(self):
292292
def test_fetch_group_by(self):
293293
# https://github.com/datajoint/datajoint-python/issues/914
294294

295-
Parent().fetch('KEY', order_by='name')
295+
try:
296+
Parent().fetch('KEY', order_by='name')
297+
assert True
298+
except err.OperationalError:
299+
assert False

0 commit comments

Comments
 (0)