Reminder: Please read these carefully! Students often run into directory issues when using the provided tests that are solved by re-reading these instructions (particularly Step 9) 1. Download tests.zip and sample_files.zip from the course website (Assignments) 2. Move both zip files to mp3/ where your three solutions are. 3. Make sure you add your mp3 folder to your VSCode Workspace (see left pane) 4. Open up a new terminal so that your path ends with mp3 5. Make sure everything looks good in your left Explorer pane and when running `ls` in the terminal, like so: ~/path/to/cs1/assignments/mp3$ ls analyzer.py tests.zip fixer.py mp3_starter.zip generator.py sample_files.zip 6. unzip tests.zip and sample_files.zip: - try unzip tests.zip in your terminal: ~/path/to/cs1/assignments/mp3$ unzip tests.zip - if that doesn't work, use your file navigator (Windows/Mac) to find the zip file and right-click -> unzip in the same mp3 directory The results should look like: ~/path/to/cs1/assignments/mp3$ ls analyzer.py mp3_starter.zip tests fixer.py sample_files tests.zip generator.py sample_files.zip 7. Finally, some of your functions will assume non-nested files. To help avoid issues in testing, copy all the contents of sample_files/ into your mp3 directory (the below command uses * to match all files in the directory, and . means to move to the current location, which is mp3/). You'll see a lot of files, but that's ok for testing purposes. ~/path/to/cs1/assignments/mp3$ cp sample_files/* . ~/path/to/cs1/assignments/mp3$ ls ~/cs1/assignments/mp3$ ls analyzer.py one_tab_test.txt babbage_tabbed.txt rooter.txt dice_example.py sample_files dice_expected.py sample_files.zip empty_file.txt spaced_four_tab_test.txt fixer.py spaced_math_fns.py four_tab_test.txt spaced_one_tab_test.txt generator.py spaced_tab0_test.txt hamlet.txt spaced_tab1_test.txt lec02_code.py spaced_two_tab_test.txt lec03_fns.py tab0_test.txt lec05_practice.py tab1_test.txt math_fns.py tests montypyinterview.txt tests.zip mp3_starter.zip two_tab_test.txt 8. Finally, run the tests! ~/cs1/assignments/mp3$ pytest tests/test_analyzer.py ~/cs1/assignments/mp3$ pytest tests/test_fixer.py ~/cs1/assignments/mp3$ pytest tests/test_generator.py 9. There are two issues that students sometimes run into, depending on their machine/setup. If you are running into errors in Step 8, try the following: a. ~/cs1/assignments/mp3$ python3 -m pytest tests/test_analyzer.py (and so on) b. If that doesn't work, you can move the test files in your mp3 folder with: ~/path/to/cs1/assignments/mp3$ cp tests/test*py . similar to Step 7. If you do this, run the tests using the following (without the tests/ subdirectory): ~/cs1/assignments/mp3$ pytest test_analyzer.py ~/cs1/assignments/mp3$ pytest test_fixer.py ~/cs1/assignments/mp3$ pytest test_generator.py c. If you are still running into test import issues, you can do the same thing as Step 7 for tests/ ~/path/to/cs1/assignments/mp3$ cp tests/* (screenshot also given on Discord in lecture).