Commit Graph

47 Commits

Author SHA1 Message Date
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
Christopher C. Wells d0b33c2b1b Use user first and last name, when available, in UI 2020-02-18 14:41:33 -08:00
Christopher C. Wells 2346995cb3 Remove bottle-formula validation test
This is not really necessary and only serves as validation that will need to updated if model choices ever change.
2020-02-18 14:41:33 -08:00
Christopher C. Wells 959649f5f7 Add data import tests 2020-02-18 14:41:33 -08:00
Christopher C. Wells af710b977a Add tests for inactive Timer delete functionality 2020-02-06 21:50:22 -08:00
Christopher C. Wells 005a4f180e Correct timer urls to use plural form 2020-02-06 20:14:01 -08:00
Christopher C. Wells 6ba6e429cd Add core Timer tests 2020-01-31 09:09:01 -08:00
Christopher C. Wells f7d9f6b361 Refactor core forms test base class
The extra child added in the base classes caused failures with the `test_child_with_one_child` test.
2020-01-31 09:09:01 -08:00
Christopher C. Wells 385d833247 Add test for `instance_add_url` template tag 2020-01-31 09:09:01 -08:00
Christopher C. Wells 2b0e15d8ec Add tests for initial values settings on core models 2020-01-31 09:09:01 -08:00
Christopher C. Wells bd79a3f2d1 Do not use generated fake data in form tests
This could cause unpredictable errors during tests so each test case should set up it's own environment.
2020-01-31 09:09:01 -08:00
Christopher C. Wells 1d492e4163 Refactor core form tests for better organization and coverage 2020-01-31 09:09:01 -08:00
Christopher C. Wells 107257cc34 Update model tests for timer-child relationship changes 2020-01-31 09:09:01 -08:00
Christopher C. Wells a8abfb725f Add generic "Amount" field to Diaper Change model (#77) 2020-01-26 13:22:20 -08:00
Christopher C. Wells eceece0db2 Update tests for Diaper Change attribute verbose names 2019-11-09 16:42:51 -08:00
Christopher C. Wells 4397d4a406 Add temperature tracking. 2019-05-16 21:33:26 -07:00
Christopher C. Wells 0261f39864 Add "both breasts" option for Feeding method (#52). 2019-05-02 10:19:56 -07:00
Christopher Charbonneau Wells 5dc372281b Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells b972482cb1 Don't require color for solid diaper change entries. 2018-02-16 09:33:30 -05:00
Christopher Charbonneau Wells 067be4bf07 Add weight tracking. 2017-11-09 21:15:09 -05:00
Christopher Charbonneau Wells 1c5278cebf Verify necessary fields before running model validation tests. 2017-11-07 07:07:51 -05:00
Christopher Charbonneau Wells e6acfe4e75 Add date intersection validation for models with start and end dates. 2017-11-05 14:18:30 -05:00
Christopher Charbonneau Wells df5c3e98b9 Add core templatetags tests and update some docstrings. 2017-11-03 23:55:42 -04:00
Christopher Charbonneau Wells fe3e753d65 Update tests for new validators. 2017-11-03 23:29:55 -04:00
Christopher Charbonneau Wells 237796a644 Move form clean methods to models. 2017-11-01 16:14:42 -04:00
Bob Thomas 1eeba2398d Add validation for model durations
It was previously possible to accidentally enter obviously wrong values
for start/end dates. Add some basic validation to catch input errors
when creating or editing various models (when not using a timer).
2017-11-01 12:44:07 -04:00
Christopher Charbonneau Wells 40f8a511ba Adjust existing tests for form validation updates. 2017-10-31 21:01:21 -04:00
Christopher Charbonneau Wells 0d7382407c Refactor some utils functions sligthly and add tests. 2017-10-30 20:45:46 -04:00
Christopher Charbonneau Wells 5afc55ca31 Make Timer instance.start field editable. 2017-10-28 13:27:33 -04:00
Christopher Charbonneau Wells fd960cd974 Refresh from DB during timer duration test to satisfy new class method duration calculation. 2017-10-27 22:36:26 -04:00
Christopher Charbonneau Wells 6e936df1bc Use a from_db class method instead of a separate method to always provider a timer's current duration. 2017-10-27 21:33:26 -04:00
Christopher Charbonneau Wells 1221367f2a Adjust duration test assertions to use exact timedeltas.
This prevents failures when timedeltas include microseconds.
2017-10-25 12:01:43 -04:00
Christopher Charbonneau Wells 3c2df12314 Add core model tests. 2017-10-25 10:20:13 -04:00
Christopher Charbonneau Wells f23ea78cef Linting fixes. 2017-10-22 15:05:58 -04:00
Christopher Charbonneau Wells 2ca120b83f Add core forms tests. 2017-10-21 23:00:28 -04:00
Christopher Charbonneau Wells 646ffbf093 Add tests utilities and core views tests. 2017-10-21 22:14:44 -04:00