Cédric Krier
44682fb9cd
Unify PYSON string format between all clients
...
issue9723
review328481002
2020-11-15 18:50:47 +01:00
Cédric Krier
be7edef2ef
Support PYSON comparison of date and datetime
...
issue4879
review270061002
2020-09-05 22:59:38 +02:00
Cédric Krier
15ea6bf65b
Add tests for types checking in PYSON Greater
...
issue9002
review276711002
2020-02-04 18:32:10 +01:00
Cédric Krier
507a8e26fe
Add start value to PYSON Date and DateTime
...
This enable the customization of the starting point for delta operations.
issue8561
review264041002
2019-09-20 11:36:05 +02:00
Sergi Almacellas Abellana
058a816879
Support dot notation on PYSON Eval
...
issue8528
review287841003
2019-09-19 14:11:17 +02:00
Cédric Krier
dbda770234
Skip tests relying on assertion when python is optimized
...
issue8381
review271471002
2019-06-12 19:15:00 +02:00
Cédric Krier
2542224ce5
Add pyson TimeDelta
...
issue7351
review47651002
2018-08-18 17:19:33 +02:00
Cédric Krier
9681897041
Implicit conversion to boolean in PYSON statement
...
issue7528
review58271002
2018-07-10 16:55:37 +02:00
Cédric Krier
d2a461390a
Remove support for Python 2.7
...
issue7497
review53261002
2018-06-26 19:11:19 +02:00
Cédric Krier
962b164709
Test Decimal in PYSONEncoder
...
issue7291
review46341002
2018-04-17 17:58:40 +02:00
Cédric Krier
8555aa5b0b
Allow None in Greater/Less PYSON
...
As all statements are evaluated even if surrounded by 'If', it is not possible
to use numeric field with Greater/Less because they can be None.
issue5711
review29381004
2016-07-19 07:40:50 +07:00
Cédric Krier
da1be07832
Make TestCase create and drop its database
...
and add with_transaction decorator.
issue5263
review20711002
2016-02-06 19:10:35 +01:00
Nicolas Évrard
03d2e3fa9a
Add reversed operators to PYSON expressions
...
review8201002
issue4856
2015-07-07 12:48:28 +02:00
Cédric Krier
b7776731a6
Add noeval to PYSONDecoder
...
issue1616
review15071002
2015-03-10 23:47:38 +01:00
Cédric Krier
e985252f2d
Add __repr__ to PYSON
...
issue4607
review4151002
2015-03-10 23:38:33 +01:00
Cédric Krier
08b4dc2dd0
Improve type checking in PYSON
...
- convert long type to int
- convert str and unicode to basestring
- use isinstance when possible
issue4405
review11881002
2015-02-14 17:52:59 +01:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
76cd64e6f8
Add Len to PYSON
...
issue3692
review3661002
2014-02-27 12:36:53 +01:00
Cédric Krier
a6ffa18908
Add run-tests script and cleanup tests
...
issue2121
issue2420
review2491002
2014-01-12 19:58:22 +01:00
Cédric Krier
84d0a09711
Fix PYSON Composite test for new default value
2013-10-10 09:39:06 +02:00
Cédric Krier
b9296eb070
Fix usage of context company
...
Default value of company should be -1 to get the right cast and an impossible
value.
Replace False by None as other value in "in" clause.
issue3394
review1119002
2013-10-09 18:24:39 +02:00
Cédric Krier
5e01f5c068
Fix flake8
2013-02-27 22:50:31 +01:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Cédric Krier
13c4ec933c
Fix unittest of PYSON And and Or
...
It uses internally a list instead of a tuple to allow easy appending.
2011-08-22 09:13:26 +02:00
Cédric Krier
20741b613d
Improve unittests to run trytond from tests
...
Use sqlite as default backend
Add skiptest attribute to data tag
Add option to test_tryton to run tests from all modules
2010-03-04 14:02:27 +01:00