codergpt.test_writer package
Submodules
codergpt.test_writer.test_writer module
Test writing module.
- class codergpt.test_writer.test_writer.CodeTester(chain)
Bases:
object
Code tester class writes testing code from a given file.
- write_tests(filename, function=None, classname=None, outfile=None)
Write tests for the code by invoking the runnable chain.
- Parameters:
path – The path to the code file to be explained.
function (
Optional
[str
]) – The name of the function to explain. Default is None.classname (
Optional
[str
]) – The name of the class to explain. Default is None.
Module contents
Test writing module.