Spelunker is a tool that will parse through your codebase and automatically generate mocks in a test folder
-
Autogenerates a 'test' folder if one does not exist
-
Skips over functions that have 'spelunker_skip' above the definition
-
Generates individual mock files with corresponding test methods (currently only supporting the requests library)
Ensure you are running a Python version >= 3.6
$ python3 --version # returns 'Python 3.7.7' or a version >= 'Python 3.6'
Run in terminal from the file (I will eventually publish this project up to pip for install/run directly)
$ python3 [PATH TO SPELUNKER DIR]/src/Spelunker.py
self.name = 'Rachel Sheikh'
self.email = 'sheikhrachel97@gmail.com'
self.site = 'https://rachel-sheikh.com'