Commit Graph

14 Commits (main)

Author SHA1 Message Date
Davide Borgonovo 79de619503 Aggiorno dall'upstream 2024-07-23 17:25:27 +02:00
Thu Trang Pham ad7409b567
Add integration tests (#20)
* Adding integration tests with inlines

* Adding more tests

* FIx make file

* Setup CI build matrix to work with integration tests

* Try again

* Fix workflow synctax

* Clean up workflow

* Format and some lint stuff

* Try codecov

* yml

* More Testing

* Minor lint things

* Update

* Try again for codecov

* Updates

* Try?

* Ignore quotes

* Exclude test project

* try this?

* checkout required

* Rename

* clean up configs

* Fix

* Allow to fail

* ignores

* FInish the integration tests for cache

* Fix workflow yml

* fix

* Try up again

* TRy again

* Fix

* Fix

* Fix tests

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-03-05 19:54:01 -08:00
Thu Trang Pham 4f50c63f7b
WIP: 2021 02 24 dockerize (#18)
* Use cache for most fields and admin form for m2m files

* MR comments/clean up

* Cache should obey exclude and fields

* Some more tests and docs

* Only use cache for image files

* Even more tests and handle save as new

* fix test

* More tests

* minor refactor

* Improve test coverage

* Adding tests for fieldsets

* Added cache timeout

* Added another test for an edge case

* Fix issue with ManagementForm tampered with

* Update cache to only set when form is_multipart

* Even more testing changes

* Dockerize

* Setting up tests in docker

* Update github actions

* Got first integration test to work

* Refactor a bit

* Fix github action yml

* Use docker-compose up -d in github actions

* combine coveralls

* Updated readme

* Clean up code

* Remove dup code from rebase

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-03-03 07:42:24 -08:00
Thu Trang Pham 06d3e1a208
fix(MR-16): Use cache for FileField and ImageField (#17)
* Remove casting to list in _get_form_data

* Use cache for most fields and admin form for m2m files

* MR comments/clean up

* Cache should obey exclude and fields

* Some more tests and docs

* Only use cache for image files

* Even more tests and handle save as new

* fix test

* More tests

* minor refactor

* Improve test coverage

* Add no cover for some places

* V0.2.3.dev7

* Adding tests for fieldsets

* Added cache timeout

* Added another test for an edge case

* Fix issue with ManagementForm tampered with

* Update cache to only set when form is_multipart

* Even more testing changes

* Update based on comments on MR and clean up a bit

* make test names better

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-27 15:39:01 -08:00
Thu Trang Pham cc36492bfe
fix(ISSUE-8): try using admin form (#16)
* Remove casting to list in _get_form_data

* feat(ISSUE-8): Use Django's form and hide with css

* feat(ISSUE-8): Updated dev release on testpypi

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-26 09:56:57 -08:00
Thu Trang Pham 09744c7f2a
fix(ISSUE-8): contd m2m save values (#11)
* feat(ISSUE-8): ISSUE-8: ManyToManyField causes error on confirmations

* feat(ISSUE-8): Update some readme and remove print statements

* feat(ISSUE-8): Generate new version of package

* feat(ISSUE-3): Adding .travis.yml

* feat(ISSUE-3): Adding coveralls

* feat(ISSUE-3): Trying github actions

* feat(ISSUE-3): remove travis

* feat(ISSUE-3): Change python versions to test

* feat(ISSUE-3): Some refactoring and trying tox

* feat(ISSUE-3): Try action matrix

* feat(ISSUE-3): Some more refactors

* feat(ISSUE-3): Fix tests

* feat(ISSUE-3): Refactor/fix tests

* feat(ISSUE-3): Remove tox

* feat(ISSUE-3): Adding pypi version badge to readme

* feat(ISSUE-3): Update readme again

* feat(ISSUE-3): Remove tox from readme

* feat(ISSUE-8): Adding some tests for m2m and fix save value issue

* feat(ISSUE-8): Updating test todos

* feat(ISSUE-8): Finish up the tests

* feat(ISSUE-8): Rename

* feat(ISSUE-8): Update gitignore

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-19 21:31:30 -08:00
Thu Trang Pham 209de62c9d
Setting up pyenv and show default value on confirm add (#7)
Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2021-02-09 17:03:18 -08:00
Thu Trang Pham 1b617170bf
Feat/confirm actions (#2)
* Working wrapper for actions

* checking permissions for action

* Refactor/clean change_confirmation template a bit

* Update README

* Update README

* Adding unit tests for confirm_action decorator

* Updated tests/readme

* Update after testing upload to test pypi

* Clean up and format code

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
2020-11-29 13:31:27 -08:00
Thu Trang Pham a63d4292b1 Refactored and added pytest.ini file 2020-11-01 07:30:51 -08:00
Thu Trang Pham b8cfdb591b confirmation_fields and confirm_change works as expected 2020-11-01 01:47:18 -07:00
Thu Trang Pham 47b1d6beee Updated css and added detected changes to confirmation page 2020-11-01 01:21:51 -07:00
Thu Trang Pham 3f8961478a Fix styling of change confirmation 2020-10-31 19:44:46 -07:00
Thu Trang Pham 9d007df017 Cleaning up 2020-10-31 18:07:01 -07:00
Thu Trang Pham 48c8e9bd10 Messy but working save confirmation on change page 2020-10-31 16:29:46 -07:00