yehia already gave a good answer. after the masturbation your your t level drops, but i think not hard enough that you feel any difference. on the other hand, i read on the internet, that abstaining from masturbation for lets say more than one week will lead to a boost of your t levels of nearly 150%
However just a few words from my side, fitness is somehow important, but i personally think it should not influence things like this bro. hahah so funny writing about this in calisthenic untiy forum. if you want to enjoy than do it, if not than not. don't make to much stress about it. you do not masturbate with the thoughts in your mind "omg, will i lose to much testosteron, oh no masturbation until i reached level xy in chris workouts plan" no no no, i think that is definetly the wrong method dealing with this "problem". if you want to do it, do it.
Conclusion: eat the right nutrition, sleep well, rest enough, work hard, and do not make stress about masturbation (it is a good and somehow necesarry action for your body, it should be relaxing and not making your feel uncomfortable because you see it like a danger for you workout!!)