Skip to content

Instantly share code, notes, and snippets.

@dantrim
Last active May 30, 2021 20:59
Show Gist options
  • Save dantrim/b9afee1945d122cb488fa818f7b7837b to your computer and use it in GitHub Desktop.
Save dantrim/b9afee1945d122cb488fa818f7b7837b to your computer and use it in GitHub Desktop.
HBD
#!/usr/bin/env python
import pytest
import some_lib
@pytest.fixture
def not_a_day_over():
return 29
def test_current_age(not_a_day_over):
"""
Ensure that one's current age is correct ;)
"""
assert some_lib.compute_current_age() == not_a_day_over
def hbd() :
print("Happy birthday Matthew!")
if __name__ == "__main__" :
hbd()
@lukasheinrich
Copy link

i'm not sure -- I think this is missing some CI :)

🎉 @matthewfeickert

@dantrim
Copy link
Author

dantrim commented May 30, 2021

Added some testing, at least @lukasheinrich @matthewfeickert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment