292c268
205c785
4045b0e
@@ -68,6 +68,10 @@
# to re-use it
COLLECTIONS = None
+ def beefy_says(text):
+ """Everything's better if Beefy says it."""
+ print("Beefy says: {0}".format(text))
+
def date_check(value, fail_raise=True, out='obj'):
"""Checks whether a value is a date, and returns it if so. Valid
dates are datetime.date instances or a string or int 'YYYYMMDD'.
@@ -113,6 +113,11 @@
@pytest.mark.usefixtures("clean_home")
class TestHelpers:
"""Tests for the functions in helpers.py."""
+ def test_beefy_says(self):
+ """Test beefy_says."""
+ fedfind.helpers.beefy_says("Fedora is great!")
+ # hey, at least nothing crashed. we're good here!
def test_date_check(self):
"""Tests for date_check."""
invalid = 'notadate'
@@ -1,5 +1,5 @@
[tox]
- envlist = py26,py27,py34,py35,py36,py37
+ envlist = py27,py34,py35,py36,py37
skip_missing_interpreters=true
[testenv]
deps=py27,py34,py35,py36,py37: -r{toxinidir}/install.requires
What a glorious PR! Who could possibly object? (This is DEMO STUFF for a talk, do not merge).
2 new commits added
1 new commit added
Pull-Request has been closed by adamwill
What a glorious PR! Who could possibly object? (This is DEMO STUFF for a talk, do not merge).