-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse our BaseForm class within tests and fix uncovered issues #51
Conversation
tests/layout/__snapshots__/test_checkboxes/test_change_legend_size.html
Outdated
Show resolved
Hide resolved
tests/layout/__snapshots__/test_checkboxes/test_show_legend_as_heading.html
Outdated
Show resolved
Hide resolved
tests/layout/__snapshots__/test_fieldset/test_show_legend_as_heading.html
Show resolved
Hide resolved
tests/layout/__snapshots__/test_file_upload/test_change_label_size.html
Outdated
Show resolved
Hide resolved
tests/layout/__snapshots__/test_textarea/test_character_count.html
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a sense check and look OK to me. Did not have time for an in-depth review today
@@ -11,7 +11,7 @@ | |||
from wagtail.contrib.forms.forms import FormBuilder | |||
|
|||
|
|||
class BaseForm: | |||
class TbxFormsMixin: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will need to be highlighted in upgrade considerations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good shout, added: https://github.com/torchbox/tbxforms/releases
This work has been merged as part of #52 (it was easier to do within an integration branch due to so many related changes) |
Resolves #44
BaseForm
within tests as opposed to testing arbitrary formsField.select()
BaseForm
toTbxFormsMixin
to more accurately convey what it is