Commit graph

15 commits

Author SHA1 Message Date
Maarten ter Huurne
441e3adee5 Make default port a string
Django can handle both strings and integers, but typeshed expects the
default value to match the mapping's value type.
2024-04-05 17:15:16 +02:00
Jelmer
8bef73cd99
Merge pull request #563 from foarsitter/docker_postgresql
Postgresql docker container for local development
2024-03-25 19:06:28 +01:00
Jelmer Draaijer
1979d4796f USE_TZ = True 2024-03-22 16:13:29 +01:00
Jelmer Draaijer
8677eef1ca Rename database environment variables to align with the docker postgres image 2024-03-21 16:00:35 +01:00
John Vandenberg
70963149d4 tests.settings: Update backend path 2021-12-26 13:49:49 +08:00
John Vandenberg
e6833a2d52 Allow running tests using sqlite 2021-12-26 12:31:12 +08:00
Hasan Ramezani
e418711f32 Add USE_TZ setting. 2021-12-08 12:33:23 +01:00
Ghassan Maslamani
b65a2ee41d set deafult DB_host as localhost 2021-10-10 23:27:56 +06:00
Sergey Tikhonov
79a7793dc5
#491 Context manager for resetting fields (#494)
* Add tracker context manager and decorator

* Handle auto-field warning in tests

* Use tracker context in monkey-patched methods

* Test delaying set_saved_fields call with context manager

* Docs for tracker context

* Describe FieldsContext context manager in changes

* Fix unused import

* #494 add breaking changes note on 4.1.1 release for #404

* #494 fix typo

* #494 add docstring for FieldsContext

* #494 move breaking changes from 4.1.1 to 4.1.0

* #494 fix typo and add some more docstrings
2021-10-08 15:09:20 +06:00
Jannis Leidel
415742ccdf
Fix typo. 2020-11-29 14:54:45 +01:00
Jannis Leidel
5b3672b980
Run Postgres 10 during testing. 2020-11-29 14:51:26 +01:00
Sergey Tikhonov
6b88c888d3 fix model.save patched in FieldTracker (#353)
* fix model.save patched in FieldTracker

* add test for save call with args

* update changes
2018-12-10 21:35:26 +06:00
Jonathan Sundqvist
2cb773372d Add a JoinManager that helps with performance (#351)
* Add the join manager + tests

* Documentation for join manager

* Use order_by for consistent tests

* Use postgres instead sqlite for tests for better reliability

* Fix coverage

* Drop django 1.8
2018-11-25 20:18:23 +06:00
tumb1er
ba83be0b43 fix #330 patch MyModel.save instead of MyModel().save 2018-11-20 18:32:09 +03:00
Tony Narlock
28bd4567a7 switch to py.test + pytest-cov 2017-12-11 08:11:55 -06:00