Skip to content

Commit 4859ccb

Browse files
committed
set default zero
1 parent cc6cfef commit 4859ccb

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

descope/management/jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class JWT(AuthBase):
1515
def update_jwt(
16-
self, jwt: str, custom_claims: dict, refresh_duration: Optional[int] = 0
16+
self, jwt: str, custom_claims: dict, refresh_duration: int = 0
1717
) -> str:
1818
"""
1919
Given a valid JWT, update it with custom claims, and update its authz claims as well

tests/management/test_jwt.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ def test_update_jwt(self):
6969
timeout=DEFAULT_TIMEOUT_SECONDS,
7070
)
7171

72-
# Test success flow without refresh duration
73-
with patch("requests.post") as mock_post:
74-
network_resp = mock.Mock()
75-
network_resp.ok = True
76-
network_resp.json.return_value = json.loads("""{"jwt": "response"}""")
77-
mock_post.return_value = network_resp
7872
resp = client.mgmt.jwt.update_jwt("test", {"k1": "v1"})
7973
self.assertEqual(resp, "response")
8074
expected_uri = f"{common.DEFAULT_BASE_URL}{MgmtV1.update_jwt_path}"

0 commit comments

Comments
 (0)