We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d7da7 commit 661099cCopy full SHA for 661099c
services/web/server/tests/unit/with_dbs/03/login/test_login_registration.py
@@ -3,7 +3,7 @@
3
# pylint: disable=unused-argument
4
# pylint: disable=unused-variable
5
6
-from datetime import timedelta
+from datetime import UTC, datetime, timedelta
7
from http import HTTPStatus
8
9
import pytest
@@ -521,8 +521,6 @@ async def test_registraton_with_invitation_for_trial_account(
521
data, _ = await assert_status(response, status.HTTP_200_OK)
522
profile = MyProfileRestGet.model_validate(data)
523
524
- from datetime import UTC, datetime
525
-
526
created_at = invitation.user.get("created_at") or datetime.now(UTC)
527
expected = created_at + timedelta(days=TRIAL_DAYS)
528
assert profile.expiration_date
0 commit comments