Bastien Gerard
2215e2746b
run latest autoformatter
2021-05-04 10:50:56 +02:00
Bastien Gérard
f4962fbc40
remove utf8 encoding declaration in test files as it's not needed/recommended
2020-10-30 21:10:21 +01:00
Bastien Gérard
ef7da36ac6
Update pre-commit and fix existing flake8 warnings once for all
2020-04-25 21:36:07 +02:00
Bastien Gérard
9166ba91d7
fix minor styling issue
2019-12-14 16:11:59 +01:00
Bastien Gérard
2ca905b6e5
Finalize python2/3 codebase compatibility and get rid of 2to3
2019-12-13 23:43:04 +01:00
Bastien Gérard
d8924ed892
remove inheritance from unittest.TestCase on basic test classes
2019-10-31 23:02:28 +01:00
Bastien Gérard
ac25f4b98b
ran unittest2pytest
2019-10-31 22:59:49 +01:00
Stefan Wójcik
b47669403b
Format the codebase using Black ( #2109 )
...
This commit:
1. Formats all of our existing code using `black`.
2. Adds a note about using `black` to `CONTRIBUTING.rst`.
3. Runs `black --check` as part of CI (failing builds that aren't properly formatted).
2019-06-27 13:05:54 +02:00
Bastien Gérard
962997ed16
fix flaky test due to signal receiver garbage collection
2019-06-01 11:13:28 +02:00
Bastien Gérard
c60c2ee8d0
fix minor styling issue in tests
2019-02-25 22:33:36 +01:00
Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Emmanuel Leblond
b320064418
Add signal_kwargs arg for save/delete/bulk insert
2016-02-09 14:28:55 +01:00
Nick Pjetrovic
acc7448dc5
Fix pre_bulk_insert signal
2015-12-24 18:30:46 -05:00
Breeze.kay
41bff0b293
remove testcase:test_signals_with_switch_sharding_db() and fix code style error for pull#1020
2015-06-21 09:32:31 +08:00
Breeze.kay
dfc7f35ef1
add testcase and changelog for pull:#1020 'improve _created status when switch collection and db'
2015-06-19 15:40:05 +08:00
Serge Chmelev
017602056d
Add testcase
2014-07-03 01:48:19 +04:00
Vlad Zloteanu
ef55e6d476
fixes MongoEngine/mongoengine#589
2014-03-01 17:51:59 +01:00
Ross Lawley
74a3fd7596
Added queryset delete tests for signals
2013-06-04 16:59:25 +00:00
Ross Lawley
eeb5a83e98
Added lock when calling doc.Delete() for when signals have no sender ( #350 )
2013-06-04 16:35:25 +00:00
Ross Lawley
4244e7569b
Added pre_save_post_validation signal ( #345 )
2013-06-04 09:35:44 +00:00
Alice Bevan-McGregor
12f6a3f5a3
Added tests for pre_save_validation and updated tests for pre_save to encompass created flag.
2013-05-29 12:22:15 -04:00
Ross Lawley
c60ea40828
ReferenceField now store ObjectId's by default rather than DBRef ( #290 )
2013-04-24 12:14:34 +00:00
Ross Lawley
0cbd3663e4
Updated tests
2013-01-28 13:40:28 +00:00
helduel
1a93b9b226
More precise "created" keyword argument signals
...
If a document has a user given id value, the post_save signal always got the
"created" keyword argument with False value (unless force_insert is True).
This patch uses the result of getlasterror to check whether the save was an
update or not.
2012-11-08 16:30:29 +01:00
Laine
91aa90ad4a
Added Python 3 support to MongoEngine
2012-08-01 17:21:48 -07:00
Ross Lawley
65a2f8a68b
Updated configs
2012-05-29 17:06:03 +01:00