Skip to content

Instantly share code, notes, and snippets.

View acherrera's full-sized avatar
🚴‍♂️

Anthony Herrera acherrera

🚴‍♂️
  • Des Moines, Ia
View GitHub Profile
@acherrera
acherrera / test_setup.py
Created August 19, 2020 14:11
Python Unittest Basic Setup
"""
I can't remember the basic setup, so here it is. This file may or may not run, it is mainly to show the pattern of
testing and set up.
"""
import unittest
from unittest.mock import patch
# Also import all the thing you want to test here
def fake_func():
# Ignore this - just using to have something to test against
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@acherrera
acherrera / 01_initial_analysis.ipynb
Created August 17, 2019 19:40
Analyzing some weather data to predict soil moisture
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.