Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Testing Code Review #3

@dmcg89

Description

@dmcg89

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions