@@ -31,19 +31,19 @@ pip install git+https://github.com/codeclassroom/CodeRunner.git
3131
3232import coderunner
3333
34- program_name = " path-to/test_python.py"
34+ source_code = " path-to/test_python.py"
3535language = " Python"
36- output = " path-to/output.txt"
37- Input = " path-to/input.txt"
36+ expected_output = " path-to/output.txt"
37+ standard_input = " path-to/input.txt"
3838
3939# use this if you have a standard input to Program
40- r = coderunner.Run(program_name , language, output, Input )
40+ r = coderunner.code(source_code , language, expected_output, standard_input )
4141
4242# otherwise
43- r = coderunner.Run(program_name , language, output )
43+ r = coderunner.code(source_code , language, expected_output )
4444
45- # if not using file paths
46- r = coderunner.Run (" Hello, World" , language, " Hello, World" , path = False )
45+ # Use path=False if not using file paths
46+ r = coderunner.code (" Hello, World" , language, " Hello, World" , path = False )
4747```
4848
4949## Documentation
@@ -81,7 +81,7 @@ pylint coderunner --disable=bad-continuation,invalid-name,too-many-instance-attr
8181
8282## Changelog
8383
84- Changelog can be found in [ Releases ] ( https://github.com/codeclassroom/CodeRunner/releases )
84+ Changelog can be found in [ CHANGELOG.md ] ( CHANGELOG.md )
8585
8686
8787## Author
0 commit comments