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
Stefan Wehrmeyer
330916f239
Fix test to ignore order of columns
2014-01-31 20:06:06 +01:00
Stefan Wehrmeyer
0e39190062
Reduce complexity of __getitem__ API
...
If you need to specify more, call get_table method
2014-01-31 19:18:58 +01:00
Stefan Wehrmeyer
7a6b16931c
Drop all tables of db after each test
2014-01-31 18:56:58 +01:00
Stefan Wehrmeyer
2865e7c50e
Add travis config to test on sqlite, postgres, mysql
2014-01-31 18:10:49 +01:00
Grzegorz Niewisiewicz
a9abc9908d
Add a test case for table cache updates
...
This test case verifies whether get_table returns the most up-to-date
table object containing all columns that has been added to the table
since the last cache update.
2014-01-27 08:58:45 +01:00
Stefan Wehrmeyer
47456b35a7
Fix type comparison to isinstance check
2014-01-25 22:19:03 +01:00
Stefan Wehrmeyer
92817d5f4d
Make flake8 part of test suite
2014-01-25 21:45:30 +01:00
Stefan Wehrmeyer
eff6925af9
Fix infinite loop in find method
...
If a _limit is not given, the query limit should
be given by eit
2014-01-25 21:20:18 +01:00
Stefan Wehrmeyer
6c8f83b7c2
Merge branch 'master' into improve-testing
...
Conflicts:
test/test_persistence.py
2014-01-25 20:53:03 +01:00
Friedrich Lindenberg
b431292188
fix test for ordereddicts
2014-01-05 18:36:11 +01:00
Friedrich Lindenberg
3abe9d2c8d
Merge branch 'python-3' of github.com:stefanw/dataset into stefanw-python-3
2014-01-05 17:52:59 +01:00
Gregor Aisch
03cca31b5b
added test for ordered keys
2013-12-19 23:46:10 +01:00
Stefan Wehrmeyer
ea28ddec01
Make tests more than twice as fast
2013-12-18 13:02:37 +01:00
Stefan Wehrmeyer
a6095a0506
Reset DATABASE_URL OS environ value properly
...
Let's be nice, who knows when this will save the day.
2013-12-18 13:02:37 +01:00
Stefan Wehrmeyer
425528dc17
Set up test suite running through setup.py
...
Run with python setup.py test
2013-12-18 13:02:36 +01:00
Stefan Wehrmeyer
0de0f0f95a
Fix tests under Python 2.6
...
assertRaises is not a context manager under Py 2.6
2013-12-18 13:02:18 +01:00
Stefan Wehrmeyer
aa3dded49e
Put actual unicode character into test data
2013-12-18 11:33:45 +01:00
Stefan Wehrmeyer
408145a98d
Fix syntax errors cause by old octal literals
2013-12-18 03:22:00 +01:00
Chen
dac921a29e
modify testcase for create_table() function
2013-12-07 00:22:29 -05:00
Friedrich Lindenberg
b7bbde45fa
Fix tests; pass url query args to create_engine. Fixes #40
2013-11-15 23:23:03 +02:00
Yi Xie
257d767b6d
add options to create custom primary id and type with shorthand format
2013-09-15 14:12:30 -04:00
Yi Xie
95cc5dd411
simplify creat_table interface
2013-09-13 09:42:35 -04:00
Yi Xie
bfd75360be
create table with custom primary_id
2013-09-08 11:35:43 -04:00
mattack108
9c7cdf6723
No needs for positional args.
2013-07-14 22:07:42 +01:00
mattack108
57a7c58f63
Test case when url comes as env variable.
2013-07-14 21:51:35 +01:00
David McKee
3b238084eb
test for upserting with all keys
2013-06-27 12:13:28 +00:00
Gregor Aisch
875e0508f2
insert returns last_id ( closes #4 )
2013-04-06 03:06:51 +02:00
Gregor Aisch
393a0b887b
tests
2013-04-05 11:59:47 +02:00
Gregor Aisch
7331078898
added test for create_column
2013-04-05 11:58:16 +02:00
Gregor Aisch
87774731f6
testing deletion of all rows
2013-04-05 11:53:50 +02:00
Gregor Aisch
eea7a572a7
added test for update
2013-04-05 11:50:50 +02:00
Gregor Aisch
bbaf65f77c
added tests, pep8 format
2013-04-05 11:46:45 +02:00
Gregor Aisch
e217d18007
added test for table dropping
2013-04-05 00:47:40 +02:00
Gregor Aisch
ec0d2d61f7
added insert_many
2013-04-04 15:43:05 +02:00
Friedrich Lindenberg
6ee58e850d
Add tables property to database.
2013-04-01 22:09:16 +02:00
Friedrich Lindenberg
0f81dbe52c
More unit tests for table.
2013-04-01 22:03:01 +02:00
Friedrich Lindenberg
7c5779da80
More tests on table
2013-04-01 19:56:14 +02:00
Friedrich Lindenberg
8a97902762
Build up test cases a bit
2013-04-01 19:46:17 +02:00
Friedrich Lindenberg
2c17baa6a3
Begin porting tests.
2013-04-01 19:38:02 +02:00