Set BLACKLIST_AFTER_ROTATION by default to False at docs#455
Set BLACKLIST_AFTER_ROTATION by default to False at docs#455Andrew-Chen-Wang merged 3 commits intojazzband:masterfrom
Conversation
There was a problem hiding this comment.
Please also set the default value in the Python code itself in settings.py. I've done it. If there are any tests that fail, please resolve them with override_settings. Thanks.
|
There is only one test case that makes tests fails on circleci, because of this line when we set |
|
So should we just import |
|
@mohmyo just monkeypatch it. Use pytest's init hook and monkey patch Regarding "should we just import BlacklistedToken anyway", I don't know if this is true, but if you don't have the app installed, then it will raise some form of ModuleNotFound error. But please test it! I'd actually much rather have it be imported, but I suspect the conditional import is there for a reason. |
|
I tried to remove the condition and import it anyway, tests passed like normal as before. so let's go this way? |
|
Please try creating a Django project. I suspect it works because of an |
|
mmmm, without trying I think you are right, I missed that part for |
|
To be more clear as I think there is a bit of confusion here, this is the error: The problem is I'm not familiar with pytest, I tried but I'm not going anywhere. |
|
@mohmyo it's fine; I got it. |
|
thanks for creating the PR! |
|
Thank you for maintaining this great package! |
No description provided.