Commit Graph

42 Commits

Author SHA1 Message Date
John Merlie 030346fb56 api test updates for pumping start/end/duration 2023-07-09 08:48:54 -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 7b7f17fde6 Remove "inactive" timer concept -- delete on complete
Closes #109
2023-03-25 13:23:05 -07:00
Christopher C. Wells cd44a473cf Replace references to Django core `User` model with `get_user_model` 2023-02-10 06:14:37 -08:00
Brian O'Connor 64f44f31ca Fix linting issue 2023-01-29 14:09:35 -08:00
Brian O'Connor 8feeb2f208 Add tags to Pumping test 2023-01-29 14:09:35 -08:00
Paul Konstantin Gerke f8212bfe80 Fix tests 2022-09-05 23:07:56 +02:00
Paul Konstantin Gerke 878ff64fad Add tests, add username to api/profile endpoint 2022-08-30 22:49:54 +02:00
Christopher C. Wells 3a022f8b12 Ignore list items order in test x2 2022-06-28 07:09:34 -07:00
Christopher C. Wells f4d15043d6 Ignore list items order in test 2022-06-28 07:05:47 -07:00
Christopher C. Wells dd0ba29416 Use Taggit serializer for taggable models 2022-06-28 06:58:37 -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 5b7bd52a41 Fix formatting 2022-05-28 07:02:13 -07:00
Christopher C. Wells 48c039eebb Add missing API tests for recent model additions 2022-05-28 07:02:13 -07:00
Christopher C. Wells 6d30969330 Reorder alpha API classes 2022-05-28 07:02:13 -07:00
jcgoette 8e180082dc add tests 2022-04-15 20:17:26 -07:00
jcgoette 611fb85314 change api date filter to datetime filter 2022-04-15 20:05:50 -07:00
bugbountyguy 6df9b44407 Fix test amount to decimal in test 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
Christopher C. Wells a20df4664c Update existing API tests for tags 2022-04-04 15:23:00 -07:00
Paul Konstantin Gerke 7d8ead594c Add api tests 2022-03-06 19:47:47 +01:00
Paul Konstantin Gerke e5279f2d7a Fix tests 2022-03-02 23:31:11 +01:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
Paul Konstantin Gerke 5e1248e798 Fix tests to test new behavior
Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
Paul Konstantin Gerke 53d4759add Fix linter messages
Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
Paul Konstantin Gerke 63d0b1373a Reworked POST to PATCH endpoints
Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
Paul Konstantin Gerke cf58ae6aba Add timer restart and stop triggers
Restarting and stopping timers from the API was not allowed. This
commit adds api/timer/{id}/[stop|restart]/ triggers that can be
posted to through the REST-API to start/stop timers.

Signed-off-by: Paul Konstantin Gerke <paulkgerke@craftware.info>
2022-01-12 16:18:10 -08:00
jcgoette 4739d909e5 add tests 2021-02-09 18:10:36 -08:00
Christopher C. Wells 4e5153daed Default to current user on timer POST (#134) 2020-06-19 14:23:43 -07:00
Christopher C. Wells 3071050881 Add tests for new "timer" argument (#131) 2020-03-14 13:33:05 -07:00
Christopher C. Wells 0c086e6469 Use a base class for API tests 2020-03-13 20:29:07 -07:00
Christopher C. Wells 0fbb4d92fc Add expected PATCH and DELETE test cases (#126)
Some of these tests are failing. Additional changes may be needed to models or
the API serializers.
2020-03-13 20:29:07 -07:00
Christopher C. Wells 0082f0d838 Add PATCH and DELETE support (#126) 2020-03-13 20:29:07 -07:00
Christopher C. Wells a0ec0591e4 Remove timezone overrides from tests
Tests will now use the timezone from a Settings model instance.
2020-02-14 10:56:13 -08:00
Christopher C. Wells 8421b14088 Update `api` app for latest core model changes 2020-01-31 09:09:01 -08:00
Christopher C. Wells c51e755c0f Add Diaper Change "amount" field data to API 2020-01-26 14:30:00 -08:00
Christopher C. Wells 243b9ef1c1 Add Temperature data to API. 2019-05-16 22:13:14 -07:00
Christopher Charbonneau Wells 5dc372281b Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells 2659063e40 Add API tests. 2017-12-07 16:34:48 -05:00
Christopher Charbonneau Wells 23acc006d4 Linting fixes. 2017-08-22 13:36:49 -04:00
Christopher Charbonneau Wells fbbaa76153 Establish basic REST Framework API structure. 2017-08-13 09:44:48 -04:00