Skip to content

Commit fe0f957

Browse files
committed
Error test case should better use HTTP 400 status code
1 parent 5cd241d commit fe0f957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_unknown_orphan_app_will_attempt_frt_and_not_remove_it(self):
7474
logger.debug("%s.cache = %s", self.id(), self.cache.serialize())
7575
def tester(url, data=None, **kwargs):
7676
self.assertEqual(self.frt, data.get("refresh_token"), "Should attempt the FRT")
77-
return Mock(status_code=200, json=Mock(return_value={
77+
return Mock(status_code=400, json=Mock(return_value={
7878
"error": "invalid_grant",
7979
"error_description": "Was issued to another client"}))
8080
app._acquire_token_silent_by_finding_rt_belongs_to_me_or_my_family(

0 commit comments

Comments
 (0)