References :-
https://machinelearningmastery.com/how-to-code-the-students-t-test-from-scratch-in-python/ <---- (Example implementation from scratch)
https://machinelearningmastery.com/statistical-hypothesis-tests-in-python-cheat-sheet/ <---- (Various Types of Tests mentioned here)
Note :- Knowledge about Probability Distributions and Hypothesis Domain should be a helping hand, alongside Implementation skills.