mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
skip meta creation to speed up tests (#8575)
This commit is contained in:
@@ -113,11 +113,16 @@ class AccountFileStorageTest(test_util.ConfigTestCase):
|
|||||||
|
|
||||||
from certbot._internal.account import Account
|
from certbot._internal.account import Account
|
||||||
new_authzr_uri = "hi"
|
new_authzr_uri = "hi"
|
||||||
|
meta = Account.Meta(
|
||||||
|
creation_host="test.example.org",
|
||||||
|
creation_dt=datetime.datetime(
|
||||||
|
2021, 1, 5, 14, 4, 10, tzinfo=pytz.UTC))
|
||||||
self.acc = Account(
|
self.acc = Account(
|
||||||
regr=messages.RegistrationResource(
|
regr=messages.RegistrationResource(
|
||||||
uri=None, body=messages.Registration(),
|
uri=None, body=messages.Registration(),
|
||||||
new_authzr_uri=new_authzr_uri),
|
new_authzr_uri=new_authzr_uri),
|
||||||
key=KEY)
|
key=KEY,
|
||||||
|
meta=meta)
|
||||||
self.mock_client = mock.MagicMock()
|
self.mock_client = mock.MagicMock()
|
||||||
self.mock_client.directory.new_authz = new_authzr_uri
|
self.mock_client.directory.new_authz = new_authzr_uri
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user