Skip to content

Commit 0bd4765

Browse files
Begin v 0.3.9, add test for autopandas
1 parent 830df7b commit 0bd4765

5 files changed

Lines changed: 15 additions & 2 deletions

File tree

NEWS.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ result sets
138138
0.3.8
139139
-----
140140

141-
* Stop warnings for deprecated use of IPython 3 traitlets in IPython 4 (thanks graphaelli; also stonebig, aebrahim, mccahill)
141+
* Stop warnings for deprecated use of IPython 3 traitlets in IPython 4 (thanks graphaelli; also stonebig, aebrahim, mccahill)
142142
* README update for keeping connection info private, from eshilts
143143

144+
0.3.9
145+
-----
146+
147+
* Fix truth value of DataFrame error (thanks michael-erasmus)

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ Credits
244244
- Thomas Kluyver and Steve Holden for debugging help
245245
- Berton Earnshaw for DSN connection syntax
246246
- Andrés Celis for SQL Server bugfix
247+
- Michael Erasmus for DataFrame truth bugfix
247248

248249
.. _Distribute: http://pypi.python.org/pypi/distribute
249250
.. _Buildout: http://www.buildout.org/

run_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
ipython -c "import nose; nose.run()"
2+
# Insert breakpoints with `from nose.tools import set_trace; set_trace()`

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
NEWS = open(os.path.join(here, 'NEWS.txt')).read()
77

88

9-
version = '0.3.8'
9+
version = '0.3.9'
1010

1111
install_requires = [
1212
'prettytable',

src/tests/test_magic.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,10 @@ def test_bind_vars():
125125
ip.user_global_ns['x'] = 22
126126
result = ip.run_line_magic('sql', "sqlite:// SELECT :x")
127127
assert result[0][0] == 22
128+
129+
@with_setup(_setup, _teardown)
130+
def test_autopandas():
131+
ip.run_line_magic('config', "SqlMagic.autopandas = True")
132+
dframe = ip.run_cell("%sql SELECT * FROM test;")
133+
assert dframe.success
134+
assert dframe.result.name[0] == 'foo'

0 commit comments

Comments
 (0)