-
Couldn't load subscription status.
- Fork 0
Open
Description
Great job writing your tests! Here are a couple of tips for the future:
- Put your tests in a separate file, and then simply import your main application into the testing file.
- Examine these docs for help following convention and having good structure for your test file: https://docs.python.org/3/library/unittest.html
- Keep your outer scope functions to run your app in your " if name == "main": " boolean in your app's file, and then running " pytest <name_of_testfile>.py " will run all your functions with "test" in the name of the functions.
- Include a .gitignore file in your project directory that contains *.pyc so none of your files that result from testing end up in your git repo.
Metadata
Metadata
Assignees
Labels
No labels