Skip to content

Commit

Permalink
add type hints to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Jun 24, 2024
1 parent 643cc29 commit 2b1d56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_example_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from py_template.example_module import fibonacci, SoftwareGroup


def test_example_function():
def test_example_function() -> None:
"""Check the Fibonacci sequence function returns correct result"""
fib = fibonacci(10)
np.testing.assert_allclose(
Expand All @@ -13,7 +13,7 @@ def test_example_function():
)


def test_example_class():
def test_example_class() -> None:
"""Check the SoftwareGroup class can be instantiated and its class method called"""
sg = SoftwareGroup(people="us", purpose="fun")
sg.long_term_goals()

0 comments on commit 2b1d56f

Please sign in to comment.