Bastien Gerard
8a1a68ea7c
fix flake8 warnings
2020-12-13 00:14:53 +01:00
Bastien Gerard
c00a378776
autoformat with updated black
2020-12-13 00:14:52 +01:00
Bastien Gérard
78c9e9745d
fix linting + update changelog & contributors
2020-04-26 22:51:56 +02:00
Bastien Gérard
38ebb5abf4
Merge branch 'master' into feature/allow-setting-read-concern-queryset
2020-04-26 22:36:47 +02:00
Bastien Gérard
ef7da36ac6
Update pre-commit and fix existing flake8 warnings once for all
2020-04-25 21:36:07 +02:00
Agustin Barto
4c62a060f0
Add tests for set_write_conern and set_read_write_concern
2020-03-17 19:37:21 -03:00
Bastien Gérard
78b240b740
updated changelog + improved query_counter test
2019-12-04 21:51:07 +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
bc0c55e49a
improve tests health (flake8 warnings)
2019-10-31 23:01:27 +01:00
Bastien Gérard
ac25f4b98b
ran unittest2pytest
2019-10-31 22:59:49 +01:00
Bastien Gérard
37ca79e9c5
fix black formatting
2019-10-31 22:39:53 +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
c82f0c937d
more work on coverage
2019-05-17 22:04:28 +02:00
Bastien Gérard
565e1dc0ed
minor improvements
2019-04-25 22:11:43 +02:00
Bastien Gérard
35b7efe3f4
refactored deprecated pymongo methods in tests
...
- remove/count/add_user/insert
- added pymongo_support
2019-03-02 00:28:38 +01:00
Bastien Gérard
c60c2ee8d0
fix minor styling issue in tests
2019-02-25 22:33:36 +01:00
Bastien Gérard
96f0919633
- Fixed tests to allow support of MongoDB 3.2
...
- Replaced MongoDB 2.4 tests in CI by MongoDB 3.2
2018-09-30 21:59:15 +02:00
erdenezul
8f76e1e344
Merge branch 'master' into refactoring_poor_assertions_in_tests
2018-09-07 14:37:28 +08:00
Bastien Gérard
003827e916
rewrote some poorly written assertions like: assertTrue(isinstance(a, b)) assertTrue(a==b) assertTrue(a!=b) assertTrue(a in b)
2018-09-06 21:47:06 +02:00
Bastien Gérard
8ff82996fb
Fix few things related to query_counter context manager:
...
- Improve doc
- Fix the fact that the context was modifying the initial profiling_level in case it was != 0
- Ignores 'killcursors' to fix flaky test that were impacted by killcursors queries (#1869 )
2018-09-04 12:07:13 +02:00
Bastien Gérard
a7852a89cc
Fixes 2 bugs in no_subclasses context mgr (__exit__ swallows exception + repair feature)
2018-09-01 23:30:50 +02:00
Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Ross Lawley
5b498bd8d6
Added no_sub_classes context manager and queryset helper ( #312 )
2013-05-10 15:05:16 +00:00
Ross Lawley
e58b3390aa
Removed import with from future
2013-05-01 08:48:14 +00:00
Ross Lawley
0cbd3663e4
Updated tests
2013-01-28 13:40:28 +00:00
Ross Lawley
ed2ea24b75
More test edge case fixing
2013-01-24 13:10:51 +00:00
Ross Lawley
9797d7a7fb
Added switch_collection context manager and method ( #220 )
2013-01-23 21:19:21 +00:00