Skip to content

Jinksi/testing-python

Repository files navigation

Testing in Python example

Watch the recording of this hacky hour discussion to see the original failing test scenarios. These should all pass!

Topics

  • Static testing
  • Assertions (Sanity Check)
  • Unit testing

Example task

example bbox

To run the example code

Install requirements

  • In terminal, run pip install -r requirements.txt

Run Jupyter notebook

  • In terminal, run jupyter notebook
  • Alternatively, open with VSCode with Python extension
  • Open get_bbox_center.ipynb

Run unit tests

  • Unit tests are written in utils_test.py
  • In terminal, run pytest

About

An example of testing Python code, used for a hacky hour workshop.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors