Closed wesleyboar closed 1 year ago
:exclamation: No coverage uploaded for pull request base (
master@4b5d248
). Click here to learn what that means. The diff coverage is35.00%
.:exclamation: Current head 58372d7 differs from pull request most recent head b3ed5ed. Consider uploading reports for the commit b3ed5ed to get more accurate results
@@ Coverage Diff @@
## master #145 +/- ##
=========================================
Coverage ? 98.93%
=========================================
Files ? 71
Lines ? 1225
Branches ? 160
=========================================
Hits ? 1212
Misses ? 8
Partials ? 5
Impacted Files | Coverage Δ | |
---|---|---|
djangocms_bootstrap4/helpers.py | 61.76% <23.52%> (ø) |
|
...gocms_bootstrap4/contrib/bootstrap4_grid/models.py | 100.00% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Hello @tacc-wbomar, Thanks a lot for your contribution!
Looks good, everything worked for me! 😄
Thank you for the review, @crydotsnake.
How can I accurately describe the status of this PR to dependent parties?
If the PR need be cleaned up anyway before merge, feel free to do it or explain the change for me to do.
(I probably Python and Django'd my way around like a child, so I don't mind direction.)
I do not know how to write test cases in Python, Django, DjangoCMS. I am disinclined to learn, because I cannot even run the existing test cases. I have followed the instructions.
I get the console error django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
, even though I added SECRET_KEY = 'barrier to entry too high'
to /tests/settings.py
.
To the PR description, I have added sections: "Known Issues", (manual) "Testing" steps, a "Screenshot".
@fsbraun were you going to look over this?
@wesleyboar @marksweb Sorry, I had the review done put left it pending. So I saw it but you couldn't. Should be fixed now!
I remember having problems with testing, too. Can you try to add SECRET_KEY = "totally secret key nobody should know"
to https://github.com/django-cms/djangocms-bootstrap4/blob/master/tests/settings.py ? I am not sure this is sufficient, though.
As a thought starter, here's how I tested first_choice
. The right place might by test_helpers.py
. For testing get_short_description
you might want to look at https://github.com/django-cms/djangocms-bootstrap4/blob/master/tests/bootstrap4_grid/test_models.py
I can now run test cases. The problem was that I had not installed Django nor DjangoCMS. I have opened a PR with a change to the README (#152) that may help others.
I've fixed the tests in master, but can't currently update this PR with the latest changes.
Yes, thank you @marksweb. Thanks all of you working on Django.
I did not have time to get back to this. How anyone does open source and holds a job is astounding.
I used the "Sync fork" ▸ "Update branch" button in GitHub which looks to have also merged the upstream master
into this branch. (I don't do much forking, so I'm hoping that button ran the correct command.)
@wesleyboar Do not worry about the failing tests. Once #156 is merged you can sync your fork and we can merge this PR!
Thank you. I was. I stop spelunking now.
@wesleyboar Can you try update branch once more?
To Do
Done
- [x] (As necessary) Add test cases. ([direction](https://github.com/django-cms/djangocms-bootstrap4/pull/145#issuecomment-1147687443)) ([done by mark](https://github.com/django-cms/djangocms-bootstrap4/pull/145#issuecomment-1148125883) ([merged?](https://github.com/django-cms/djangocms-bootstrap4/pull/145/commits/58372d7d719356a9911db46e21710dd8c2f3997c)) - [x] The `get_short_description` value is inaccurate (see [screenshot](https://user-images.githubusercontent.com/62723358/172020564-e71e542e-1164-42fe-a450-18838bc99c37.png)). (4ba6861, 99dcc07). - [x] Test changes from review (da1f543, 8d8adcb, 4ba6861).Description
Fix short description for Bootstrap4 Container if user choses container type from nested tuples in
DJANGOCMS_BOOTSTRAP4_GRID_CONTAINERS
setting.*_* An
<optgroup>
is available in "Container Type"<select>
field whenDJANGOCMS_BOOTSTRAP4_GRID_CONTAINERS
has deeply-nested tuples. But were user to chose such an option, thenget_short_descritpion
would return empty string._Related resources
Checklist
master
Testing
wesleyboar:quick/grid-container-support-nested-tuple-choices
poc/djangocms-bootstrap4-pull-145
(see diff).[^1][^2]container
container-fluid
container-yours
Screenshots
[^1]: Added
from django.utils.translation import gettext_lazy as _
toyour-app/settings.py
. [^2]: Added sample DJANGOCMS_BOOTSTRAP4_GRID_CONTAINERS toyour-app/settings.py
.