Commit Graph

22 Commits

Author SHA1 Message Date
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