Commit Graph

89 Commits

Author SHA1 Message Date
Stefan Wehrmeyer
ffe7beae12 Make test read nicer 2017-05-16 16:59:18 +02:00
Stefan Wehrmeyer
3f330df20f Check for clauses and filters in delete
Guard against wrong API use before dropping all data
2017-05-16 16:57:07 +02:00
Stefan Wehrmeyer
6fc8bfed51 Skip invalid values test on mysql 2016-10-17 15:16:13 +02:00
Stefan Wehrmeyer
a92a315b60 Test behaviour of _step, assert it still retrieves all data 2016-10-15 22:55:50 +02:00
Saun Shewanown
c1e82bb9ae Added insert_ignore and changed upsert. 2016-04-22 11:35:14 -04:00
ryneeverett
1565fe5fe2 Implement comparison operators. Resolve #128. 2016-03-24 17:57:26 -05:00
Friedrich Lindenberg
771509a05b try nose 2016-02-14 11:05:46 +01:00
Friedrich Lindenberg
91d587849d merge 2016-01-18 11:19:13 +01:00
Friedrich Lindenberg
4f00db572f work around a bunch of bugs; 2016-01-18 11:14:30 +01:00
Friedrich Lindenberg
b393ebb54a Merge pull request #132 from mgaitan/fix_drop_column
drop_column fails with sqlite
2016-01-18 11:09:05 +01:00
Friedrich Lindenberg
bd3a19ebc4 Fix python 2 support for StringIO. 2016-01-18 10:56:35 +01:00
Paul Morelle
998a712242 When wrap is False, don't wrap JSON result
Test and solution for issue pudo/dataset#149
2016-01-18 05:59:07 +01:00
Paul Morelle
18bd08c009 dataset.freeze should not close provided fileobj
Test and solution for issue pudo/dataset#147
2016-01-18 05:11:24 +01:00
Stefan Wehrmeyer
47917c6867 Add failing test case for table drop 2016-01-14 21:40:53 +01:00
Martín Gaitán
f6336e1808 test to reproduce the bug 2015-06-25 19:53:43 -03:00
Friedrich Lindenberg
0c04f647b2 re-introduce relative imports to unbork python 3. 2015-06-08 10:54:46 +02:00
Friedrich Lindenberg
085817b844 fix previous fix. hello monday morning 2015-06-08 10:13:48 +02:00
Friedrich Lindenberg
1d8928e4a0 Add facility to run tests directly, fixes #129. 2015-06-08 10:04:30 +02:00
Friedrich Lindenberg
56d5b232d8 Include support for custom result row types, fixes #41. 2015-05-23 16:15:17 +02:00
Friedrich Lindenberg
7f7cb41858 Handle column name validation more coherently, fixes #45. 2015-05-23 15:30:19 +02:00
Friedrich Lindenberg
f8241e809b Attempt to reproduce #111 on travis (linux). Issue does not appear on OS X. 2015-05-23 14:49:14 +02:00
Friedrich Lindenberg
07232fa1bd Fix tests by giving up on mysql-connector driver. 2015-05-23 14:35:28 +02:00
Friedrich Lindenberg
819c37d61d Make __getitem__ an alias for distinct(). Fixes #87. 2015-05-23 13:01:36 +02:00
Friedrich Lindenberg
295a5deb61 Remove invalid test of arg parser. 2015-05-23 12:45:25 +02:00
Friedrich Lindenberg
19cc76dd60 Don’t allow dots in column names, fixes #86. 2015-05-21 23:21:47 +02:00
Friedrich Lindenberg
e662d8bde7 Support for properly returning a query count. 2015-05-21 18:05:26 +02:00
Friedrich Lindenberg
e9aec72bac Slurp result proxy in one go so the query doesn’t remain open. Fixes #15. 2015-05-21 17:17:14 +02:00
Friedrich Lindenberg
d3473fc4a6 Include tests from PR, fixes #105. 2015-05-21 16:47:36 +02:00
Stefan Wehrmeyer
ee12dd45cc Fix some warnings in tests 2015-01-06 21:57:32 +01:00
xrotwang
f68866abc9 fixed python2.6 incompatible usage of assertRaises as context manager. 2014-11-06 14:29:05 +01:00
xrotwang
d58e3ec691 extended test coverage for the freeze package, thereby fixing some bugs. 2014-11-06 14:09:52 +01:00
xrotwang
c177b29f01 fixed flake8 compliance 2014-11-06 11:16:31 +01:00
xrotwang
5b7908893d make dataset.freeze.config compatible with python3 2014-11-06 11:08:07 +01:00
xrotwang
4bf19159c6 Merge remote-tracking branch 'upstream/master' 2014-11-06 10:13:04 +01:00
aniversarioperu
5b65693ef8 full coverage for function value_to_str 2014-09-04 09:15:53 +03:00
aniversarioperu
1e82be8fd0 fixed code and test for Python3 2014-09-04 07:02:27 +03:00
aniversarioperu
62262be5f2 I created a test file
I created a new file for testing the module dataset.freeze.format.fcsv. I wrote
a test for the function ``value_to_str``.
2014-09-03 17:39:53 +03:00
Thomas Levine
17bad827ae add __contains__ 2014-08-29 18:12:25 +00:00
xrotwang
0b76c3fadb fixed problems reported by flake8 2014-07-25 12:46:55 +02:00
xrotwang
a14f0bbde2 ported freezing as csv to python 3.4 2014-07-25 12:15:08 +02:00
Victor Kashirin
39759c92ab Make more explicit syntaxis for test_with transaction test 2014-06-11 15:14:42 +04:00
Victor Kashirin
38b1114bde Add support for with statement 2014-06-09 01:36:42 +04:00
John Lee
f6a14d1723 adding test for descending order_by fix 2014-03-10 10:41:51 -07:00
Friedrich Lindenberg
6ef4cd7814 Revert to using OrderedDict. 2014-02-18 12:59:12 +01:00
Stefan Wehrmeyer
ea31943e18 Fix too early StopIteration on empty result sets
Fixes #77, thanks to @hfaran for report
2014-02-16 13:48:56 +01:00
Chen Liu
c9cd4bf522 add test case for repr(table) 2014-02-04 09:24:38 +01:00
Chen Liu
58a58912b7 add test case for Table.delete 2014-02-04 09:23:56 +01:00
Stefan Wehrmeyer
6deba5937e Test offset behaviour 2014-01-31 21:52:57 +01:00
Stefan Wehrmeyer
8f4cd59c9a Treat columns as ordered throughout code
The set() does not make anything any easier,
lists are closer to underlying representation.
2014-01-31 20:42:04 +01:00
Stefan Wehrmeyer
89ebd62732 Use OrderedDict on insert for value order comparison 2014-01-31 20:15:52 +01:00