Skip to content

Commit 258b24c

Browse files
committed
Initial test framework in test_fetch
1 parent 7764467 commit 258b24c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
__author__ = 'Edgar Walker, Fabian Sinz, Dimitri Yatsenko, Raphael Guzman'
2121

2222
# turn on verbose logging
23-
logging.basicConfig(level=logging.DEBUG)
23+
# logging.basicConfig(level=logging.DEBUG)
2424

2525
__all__ = ['__author__', 'PREFIX', 'CONN_INFO']
2626

tests/test_fetch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,7 @@ def test_query_caching(self):
287287

288288
# reset cache directory state (will fail if purge was unsuccessful)
289289
os.rmdir(os.path.expanduser('~/dj_query_cache'))
290+
291+
def test_fetch_group_by(self):
292+
# nosetests -vs --tests=tests.test_fetch:TestFetch.test_fetch_group_by --nologcapture
293+
schema.Parent.fetch('KEY', order_by='name')

0 commit comments

Comments
 (0)