-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: fix typing for sentry.web.forms.accounts (take 2) (#83597)
this time with a fix for username being missing <!-- Describe your PR here. -->
- Loading branch information
1 parent
77e4266
commit c67f488
Showing
3 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from sentry.web.forms.accounts import RegistrationForm | ||
|
||
|
||
def test_valid_does_not_crash_without_username() -> None: | ||
form = RegistrationForm({"password": "watwatwatwatwatwatawtataw"}) | ||
assert form.is_valid() is False |