Commit Graph

63 Commits

Author SHA1 Message Date
niphlod 302f56ecc1 more tests, general cleanup 2015-05-03 15:33:19 +02:00
gi0baro 537045082c Updated dal test due to new serializers 2015-04-18 15:08:39 +02:00
mdipierro 29b58ff70c added DAL serilization test 2015-03-20 01:35:55 -05:00
gi0baro 8000bda0c9 Removed _default_validators impossible comparison check from DAL tests 2014-12-24 15:03:55 +01:00
gi0baro c49e32bfd6 Updated DAL tests due to latest pyDAL validators change 2014-12-24 15:00:06 +01:00
gi0baro 846d8f4e4b Get tests working back on py26, disabled web2py_uuid comparison check 2014-12-15 22:51:02 +01:00
gi0baro 5a605f59b9 Started adding new tests for dal implementation 2014-12-15 21:16:35 +01:00
ilvalle fd6c36e5f0 fix and initial tests for bigint 2014-12-11 11:27:16 +01:00
mdipierro 4839df37e8 more tests, thanks Paolo 2014-12-09 20:59:26 -06:00
ilvalle e9a89eff82 tests for lazy tables and substring expr 2014-12-06 00:45:56 +01:00
ilvalle 5474c68994 More gis tests 2014-12-04 12:18:17 +01:00
ilvalle 2a8c04c69f better SQLCustomType tests 2014-12-03 19:32:25 +01:00
ilvalle f64098af14 Initial tests for SQLCustomType 2014-12-03 18:20:07 +01:00
ilvalle 64ae27862a few more tests: gis functions, starts/endswith 2014-10-17 11:16:07 +02:00
ilvalle 4e110c691f added initial gis tests 2014-10-11 20:09:09 +02:00
gi0baro 502327e531 Fixed merge conflict 2014-09-25 12:51:39 +02:00
gi0baro 5c07c511fa Merge branch 'master' into DAL-modular
* master: (58 commits)
  changed version number
  better types by default, given that we're on 2005 at least
  fix for StorageList and tests added
  improved coverage, fix bug with IS_LIST_OF and items not being strings
  fix cache.increment, added tests
  R-2.9.11
  reverted simplejson
  R-2.9.10
  upgraded memcache and markdown2
  upgraded pypyodbc.py
  upgraded simplejson
  no more split in contains, thanks Niphlod
  fixed wording and bug on contains(), made smart_query use ilike instead of like
  ilike, thanks Niphlod
  CROSS JOIN, thanks jotbe
  added custom represent to GoogleDatastoreAdapter, thanks Alan
  postgresql: identifies what adapter auto-loads json values
  added more tests for json Field
  fixed typo in driver_auto_json
  Improve the graphing to show the name of the application.
  ...

Conflicts:
	gluon/dal.py
	gluon/globals.py
	gluon/tests/test_dal.py
2014-09-25 12:49:16 +02:00
niphlod 34a417cfa0 fix for StorageList and tests added
gluon/storage.py
StorageList had a recursion error (please check the implementation before committing)

gluon/tests*
added the fix_path module to avoid those ugly lines at the beginning of each test file
added tests for gluon.contenttype and test_fileutils
added tests for missing Storage methods
2014-09-21 08:26:38 +02:00
niphlod 50f16744a7 fix cache.increment, added tests 2014-09-16 23:50:10 +02:00
Niphlod ecc6e5dc5e added more tests for json Field 2014-09-14 16:01:22 +02:00
gi0baro 5e5e649c28 Added modular DAL, updated gluon imports to new structure 2014-09-03 12:48:03 +02:00
niphlod b6f9bdef95 fix like behaviour 2014-06-10 22:37:55 +02:00
Michele Comitini 310528ea10 added entity_quoting (False by default) parameter to DAL to optionally enable entity name quoting by adapters. 2014-01-28 17:45:15 +01:00
Alan Etkin 98610df1d4 NoSQL dal tests 2014-01-22 08:50:03 -03:00
niphlod 7d59bcab72 first steps to a cleaner DAL and rname integration 2014-01-13 23:35:42 +01:00
niphlod 09c0069b43 fix mssql quoting issue, disabled some tests
Tests now pass on mssql. I think we need to agree on what's going on
with DAL, or we risk shipping a module with lots of changes that are
breaking backward compatibility. I'll start a thread on
web2py-developers
2013-12-15 15:06:42 +01:00
Michele Comitini 14bcad629e quoting of tablenames and field names
fix for wrong sequence name quoting

fix for wrong sequence name quoting 2

reverted test to quoted rname

rname passed asis. freedom in table names and field names. Case sensitivity in field and table names

removed test of allowed char sequence in table and field names, there is no limit anymore

fixed some troubles with postgresql drop(). Better Row.__getitem__(): should not be much slower.  Added a ignore_field_case parameter to allow Field('F')!=Field('f') on databases supporting case sesitivity.

different mysql drivers handled in quoting test.

improved handling of foreing keys

fix with quoted names in SQLTABLE.  fix for ORDER BY

handle references on non "id" fields

check reference expression against table list first
2013-12-03 12:29:30 +01:00
niphlod 0f2b2daeab fixed issue with ordereddict in python < 2.7, added rname support also for fields 2013-10-27 14:36:38 +01:00
niphlod 9f846dbe3c fix for references, DAL tests pass also on MSSQL now 2013-10-21 12:09:47 -07:00
mdipierro 25148d06fe reverted to rname 2013-10-20 16:48:22 -05:00
mdipierro 4870b197de revering rname 2013-10-20 16:42:52 -05:00
niphlod c9b0c4547a add support for rname (meaning "real name") for table names 2013-10-18 00:09:32 +02:00
spametki b5039a5a6e Switched table definition order at test_dal.py 2013-09-01 19:16:45 -03:00
spametki a634ff7954 Applied patch for issue 1639 2013-09-01 18:13:51 -03:00
niphlod f5f6f365f9 added boilerplate to be able to run tests from anywhere. Added test for validate_and_insert too. 2013-08-25 18:35:29 +02:00
mdipierro f0bcef14b0 reverted issue 1639:DAL, define_table and Field unpacked serialized attributes 2013-08-21 17:23:11 -05:00
mdipierro f9940825a1 fixed issue 1639:DAL, define_table and Field unpacked serialized attributes, thanks Alan 2013-08-21 02:37:31 -05:00
Michele Comitini a208e8cc9f changed way to detect missing key since None is already a possible value 2013-07-21 16:42:14 +02:00
Tim Richardson c3be2e5f8a test case for the changes allowing a compute field to refer to an
earlier defined compute field
2013-06-21 11:20:17 +10:00
mdipierro 1383d13334 @db.table.add_method.name, thanks Vinicius 2013-05-03 22:15:01 -05:00
Michele Comitini 9bda793d46 orderby disabled where not needed 2013-04-13 00:03:43 +02:00
mdipierro e2191175da smarter CONTAINS and REPLACE 2013-04-03 09:50:28 -05:00
mdipierro fcfa8aa917 added common_filter tests 2013-03-29 02:08:41 -05:00
Massimo a8d1d5cfcf upgraded fpdf, better tests, passes travis.ci tests, thanks Niphlod 2013-03-18 16:52:47 -05:00
mdipierro c9a63a8524 fixed issue 1393, cast_keys in dict for python 2.5 support, thanks Alan and Niphlod 2013-03-17 12:11:10 -05:00
mdipierro bfd385f969 travis badge in README, thanks niphlod 2013-03-15 15:12:01 -05:00
mdipierro 892471d8e5 fixed issue 1340, bugs in as_dict, thanks Alan 2013-02-17 09:49:44 -06:00
Massimo 50193471d6 better IS_NOT_IN_DB, new scheduler API, after_connection dal callback, thanks Niphlod 2013-02-14 14:15:27 -06:00
mdipierro 7ef19ecf47 allow a dict as uri, issue 1316, thanks Alan 2013-02-13 09:36:07 -06:00
Massimo 980aedf314 some cleanup patches, thanks Alan 2013-01-08 15:31:17 -06:00