ubsuny / 23-Homework4G2

GNU General Public License v3.0
0 stars 6 forks source link

How to create separate module/function for unit test? #70

Closed reshnashrestha closed 1 year ago

reshnashrestha commented 1 year ago

Any ideas will be appreciated.

tirthbha commented 1 year ago

@reshnashrestha You can create a module file just as you created in the previous homework for example, create a module named module_file.py based on your code. Then create a separate file for tests, say test_file.py, which imports your created module. Finally, add the module_file.py and test_file.py to your repository.

reshnashrestha commented 1 year ago

@tirthbha Thank you. It appeared that I did this way earlier. I was just confused with the words. Can you please check out my work? projectile_unit_test.py