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

Fix None values for HexField #313

Merged
merged 2 commits into from
Jul 26, 2022
Merged

Fix None values for HexField #313

merged 2 commits into from
Jul 26, 2022

Conversation

Uxio0
Copy link
Member

@Uxio0 Uxio0 commented Jul 26, 2022

  • Call strip() after checking value is an str

- Call `strip()` after checking value is an str
@Uxio0 Uxio0 requested a review from a team as a code owner July 26, 2022 09:52
@coveralls
Copy link

coveralls commented Jul 26, 2022

Pull Request Test Coverage Report for Build 2738599014

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 89.249%

Totals Coverage Status
Change from base Build 2738308193: -0.03%
Covered Lines: 3080
Relevant Lines: 3451

💛 - Coveralls

form = HexForm(data={"value": ""})
self.assertTrue(form.is_valid())
self.assertIsNone(form.cleaned_data["value"])

form = HexForm(data={"value": None})
self.assertTrue(form.is_valid())
Copy link
Member

Choose a reason for hiding this comment

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

Maybe should be false?

@Uxio0 Uxio0 merged commit 62799c8 into master Jul 26, 2022
@Uxio0 Uxio0 deleted the fix-hex-field branch July 26, 2022 10:10
@github-actions github-actions bot locked and limited conversation to collaborators Jul 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants