├── .gitignore ├── README.md ├── hello.py └── hello_test.py /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | *.pyc 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Autograding Example: Python 2 | This example project is written in Python, and tested with pytest. 3 | 4 | ### The assignment 5 | The tests are failing right now because the method isn't outputting the correct string. Fixing this up will make the tests green. 6 | 7 | ### Setup command 8 | `sudo -H pip3 install pytest` 9 | 10 | ### Run command 11 | `pytest` 12 | 13 | ### Notes 14 | - pip's install path is not included in the PATH var by default, so without installing via `sudo -H`, pytest would be unaccessible. 15 | -------------------------------------------------------------------------------- /hello.py: -------------------------------------------------------------------------------- 1 | def hello_world(): 2 | return "Hello!" 3 | -------------------------------------------------------------------------------- /hello_test.py: -------------------------------------------------------------------------------- 1 | import hello; 2 | 3 | def test_hello(): 4 | assert hello.hello_world() == "Hello World!" 5 | --------------------------------------------------------------------------------