Commit Graph

85 Commits

Author SHA1 Message Date
Christopher Charbonneau Wells 49d8f2b340
Update to Django 5.x (#746) 2024-01-13 20:22:08 -08:00
Christopher C. Wells 0f7c49b4f1 Add test for `Child.birth_datetime()` 2023-10-21 14:02:07 -07:00
Christopher C. Wells 43ab2694b4 Correct exception catch for `timesince` 2023-10-21 14:02:07 -07:00
Christopher C. Wells 39c1e98d8c Add birth time support to Child model 2023-10-21 14:02:07 -07:00
John Merlie 3826772b1c updated pumping form for start/end/duration 2023-07-09 08:48:54 -07:00
John Merlie 77622c4924 updated core pump test case for start/end/duration 2023-07-09 08:48:54 -07:00
Christopher C. Wells 8abb6d749e Enforce min and max nap start parameters
Fixes #644
2023-06-04 17:39:08 -07:00
Christopher Charbonneau Wells 31a0aa4741
513: Make nap user toggleable (#641)
* Add `nap` field, remove `napping` field.

* Default `nap` property to NULL

* Update existing tests

* Format the code!!

* Allow `Sleep.nap` to be blank

* Migrate settings from `NAP_START_MIN` AND `NAP_START_MAX`

* Remove `active` class from boolean fields

* Correct test method name and user config

* Add forms test

* Use settings for Sleep nap model tests
2023-05-07 15:10:50 -07:00
Christopher C. Wells 5875ef9658 Remove support for 24H time format override 2023-03-25 14:29:35 -07:00
Christopher C. Wells 716d121575 Remove outdated tests 2023-03-25 13:57:01 -07:00
Christopher C. Wells 7b7f17fde6 Remove "inactive" timer concept -- delete on complete
Closes #109
2023-03-25 13:23:05 -07:00
Christopher C. Wells a5504520d1 Explicitly reset format caches during testing
This seems to be necessary primarily for consistency when running tests in
parallel.

Fixes #483
2023-02-11 20:21:09 -08:00
Christopher C. Wells 90e16431b8 Format code 2023-02-10 06:14:37 -08:00
Christopher C. Wells cd44a473cf Replace references to Django core `User` model with `get_user_model` 2023-02-10 06:14:37 -08:00
jcgoette 94f81e3754 test: Remove out of date comment 2022-11-12 04:59:23 -08:00
jmunoz94 5b171ff66f Add a test for deltasince 2022-10-11 19:13:22 -07:00
Christopher C. Wells f47fbce0cb Use consistent naming for forms test case classes 2022-06-14 14:05:03 -07:00
Daniel Beard 21b8a737c0
Add carousel of last 7 days of feedings to the todays feeding card (#450)
Add list of last 7 days of feedings to the todays feeding card

Co-authored-by: Daniel Beard <daniel@medcrypt.co>
2022-05-30 19:43:42 -07:00
Christopher C. Wells 362f42d266 Add tagged test to Import/Export tests 2022-05-28 07:02:13 -07:00
Christopher C. Wells fa746c68ca Add views tests for recently added models 2022-05-28 07:02:13 -07:00
Christopher C. Wells db5615fcb9 Add missing forms tests; separate notes and tags tests 2022-05-28 07:02:13 -07:00
Christopher C. Wells 838020ceff Update Faker API usage 2022-05-28 07:02:13 -07:00
Christopher C. Wells f4f60363eb Add import/export tests for recent model additions 2022-05-28 07:02:13 -07:00
Christopher C. Wells 3af2aee093 Reorder alpha core tests 2022-05-28 07:02:13 -07:00
Christopher C. Wells 4445faeeac Add basic model tagging tests 2022-05-28 07:02:13 -07:00
Christopher C. Wells 00d04f1464 Add test for child without last name 2022-05-28 07:02:13 -07:00
Christopher C. Wells c91b556739 Add basic test cases for recent core model additions 2022-05-28 07:02:13 -07:00
Christopher C. Wells 0875b6af05 Alpha order core models class declarations 2022-05-28 07:02:13 -07:00
Marco H 123a0192ce Fix test 2022-04-15 20:56:34 -07:00
bugbountyguy 9b4bbef5bf Change reading to entry and other PR feedback 2022-04-04 20:39:39 -07:00
bugbountyguy 8b5c3eb5b9 Make gulp lint happy 2022-04-04 20:39:39 -07:00
bugbountyguy 4ceb6095d3 Rename breastpump to pumping 2022-04-04 20:39:39 -07:00
bugbountyguy 44648ce33b add tests 2022-04-04 20:39:39 -07:00
Paul Konstantin Gerke 5f23eecb84 Black 2022-03-06 18:31:29 +01:00
Paul Konstantin Gerke d0469caed5 Add missing notes-test (includes tests for tags-feature) 2022-03-06 18:30:58 +01:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
Christopher C. Wells e13f00e024 Force AM/PM for en-GB 12H setting combination 2021-11-28 15:51:51 -05:00
Christopher C. Wells 774504bce2 Prevent potential sleep entry intersection errors in tests 2021-10-26 19:55:16 -07:00
Christopher C. Wells 83b9177dbe Add basic timeline page load test 2021-08-31 08:08:13 -07:00
Christopher C. Wells c850998b64 Remove deprecated `icon` base class usage 2021-08-31 08:08:13 -07:00
Christopher C. Wells 273c365bef Add test for short datetime template tag 2021-08-01 04:42:38 -07:00
Christopher C. Wells 58acccfddb Use short datetime string for lists (WIP) 2021-08-01 04:42:38 -07:00
Christopher C. Wells c1dab44596 Use POST for timer quick add functionality 2021-07-31 13:56:48 -07:00
Christopher C. Wells c2513ff843 Use POST for timer stop and restart operations 2021-07-31 13:11:21 -07:00
Christopher C. Wells e27f7b76a0 Use Django 3.2 timesince depth parameter for child age 2021-04-11 13:35:07 -07:00
Christopher C. Wells 95a2cdf06d Use day precision for child age (#167) 2020-10-25 20:06:21 -07:00
Christopher C. Wells 7abe7b2a5f Add test for USE_24_HOUR_TIME_FORMAT (#148)
Note: this new test has been tagged "isolate" and excluded from regular tests
because the locale behavior being tested involves Django internals that must
be handled at initialization and cannot be changed during runtime (i.e. this
new test with PASS when run alone, but FAIL when run with other tests).

A future commit or set of commits should come up with a way to execute all
tests tagged "isolate" in isolated test environments as part of the full test
suite. For now, this test simply does not run until it is run manually.
2020-07-22 21:56:29 -07:00
Christopher C. Wells 8f3f8e5104 Add tests for template tag (#148) 2020-07-22 20:16:23 -07:00
Christopher Charbonneau Wells cbf6f0ce1e
Fix minor linting issues 2020-03-30 05:25:57 -07:00
Peter Hardy dfd89ae339 Tests for initial feeding methods (#127) 2020-03-28 21:54:07 +11:00