diff --git a/tests/test_dates.py b/tests/test_dates.py index ad4a82544..ba5f553e7 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -16,6 +16,8 @@ is_before, is_after, is_between, + date_to_float, + month_to_int ) TEST_DATE = date(2019, 6, 15) @@ -36,10 +38,6 @@ def test_month_to_str(input, expected): assert month_to_str_int(input) == expected -import datetime -from regolith.dates import date_to_float, month_to_int - - @pytest.mark.parametrize( "input,expected", [ diff --git a/tests/test_helpers.py b/tests/test_helpers.py index ed963bfc7..55b00a78b 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -1334,8 +1334,7 @@ def test_helpers_bad(hmb, make_db): repo = Path(make_db) os.chdir(repo) with pytest.raises(hmb[2]) as excinfo: - actual = main(args=hmb[0]) - assert str(excinfo.value) == hmb[1] + assert str(excinfo.value) == hmb[1] @pytest.mark.parametrize("db_src", db_srcs) @@ -1388,7 +1387,6 @@ def test_helper_python(hm, make_db, db_src, make_mongodb, capsys, mocker): @pytest.mark.parametrize("hm", helper_map_loose) def test_helper_python_loose(hm, make_db, capsys): repo = Path(make_db) - testfile = Path(__file__) os.chdir(repo) main(args=hm[0])