Skip to content
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

Closed
wants to merge 6 commits into from

Conversation

kbayliss
Copy link
Collaborator

@kbayliss kbayliss commented Aug 14, 2023

Resolves #44

  • Re-uses our BaseForm within tests as opposed to testing arbitrary forms
  • Allows changes to a form's helper after instantiation
  • Fixes overriding the label size and tag for Field.select()
  • Update README to be clearer
  • Renames BaseForm to TbxFormsMixin to more accurately convey what it is

@kbayliss kbayliss marked this pull request as ready for review August 15, 2023 10:00
@kbayliss kbayliss changed the title Use BaseForm class within tests Reuse our BaseForm class within tests and fix uncovered issues Aug 15, 2023
README.md Outdated Show resolved Hide resolved
Copy link
Member

@zerolab zerolab left a 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

pyproject.toml Show resolved Hide resolved
@@ -11,7 +11,7 @@
from wagtail.contrib.forms.forms import FormBuilder


class BaseForm:
class TbxFormsMixin:
Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tbxforms/layout/fields.py Show resolved Hide resolved
@kbayliss
Copy link
Collaborator Author

This work has been merged as part of #52 (it was easier to do within an integration branch due to so many related changes)

@kbayliss kbayliss closed this Aug 16, 2023
@zerolab zerolab deleted the fix/44-use-base-form-class-in-tests branch August 16, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test suite does not use the correct BaseForm
3 participants