-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5b79b9
commit a3ab134
Showing
69 changed files
with
1,425 additions
and
1,688 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
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 |
---|---|---|
|
@@ -15,7 +15,6 @@ | |
|
||
# pylint: disable=redefined-outer-name # because of fixtures | ||
|
||
from collections.abc import Iterator | ||
from http import HTTPStatus | ||
from unittest import mock | ||
|
||
|
@@ -53,19 +52,19 @@ | |
|
||
|
||
@pytest.fixture | ||
def url() -> Iterator[str]: | ||
def url() -> str: | ||
"""URL under test.""" | ||
return root_reverse("acme-new-account") | ||
|
||
|
||
@pytest.fixture | ||
def message() -> Iterator[Registration]: | ||
def message() -> Registration: | ||
"""Default message sent to the server.""" | ||
return Registration(contact=(CONTACT,), terms_of_service_agreed=True) | ||
|
||
|
||
@pytest.fixture | ||
def kid() -> Iterator[None]: | ||
def kid() -> None: | ||
"""Request requires no kid, yield None.""" | ||
return | ||
|
||
|
@@ -228,7 +227,7 @@ def test_unsupported_contact(client: Client, url: str, root: CertificateAuthorit | |
|
||
|
||
@pytest.mark.parametrize( | ||
"value,expected", | ||
("value", "expected"), | ||
( | ||
('mailto:"with spaces"@example.com', "Quoted local part in email is not allowed."), | ||
("mailto:[email protected],[email protected]", "More than one addr-spec is not allowed."), | ||
|
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
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
Oops, something went wrong.