Skip to content

Commit cee74db

Browse files
committed
Add test
1 parent 1ed72b9 commit cee74db

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
"mypy-type-checker.importStrategy": "fromEnvironment",
88
"isort.importStrategy": "fromEnvironment",
99
"black-formatter.importStrategy": "fromEnvironment",
10+
"workbench.colorCustomizations": {
11+
"activityBar.background": "#121D85",
12+
"titleBar.activeBackground": "#1A28BA",
13+
"titleBar.activeForeground": "#F9FAFE"
14+
},
1015
}

tests/test_enchantedlink.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ def test_sign_up(self):
303303
304304
"http://test.me",
305305
None,
306-
SignUpOptions(template_options={"bla": "blue"}),
306+
SignUpOptions(
307+
template_options={"bla": "blue"}, revoke_other_sessions=True
308+
),
307309
)
308310
mock_post.assert_called_with(
309311
f"{common.DEFAULT_BASE_URL}{EndpointsV1.sign_up_auth_enchantedlink_path}/email",
@@ -317,7 +319,10 @@ def test_sign_up(self):
317319
"URI": "http://test.me",
318320
"user": {"email": "[email protected]"},
319321
"email": "[email protected]",
320-
"loginOptions": {"templateOptions": {"bla": "blue"}},
322+
"loginOptions": {
323+
"templateOptions": {"bla": "blue"},
324+
"revokeOtherSessions": True,
325+
},
321326
},
322327
allow_redirects=False,
323328
verify=True,

0 commit comments

Comments
 (0)