Skip to content

Commit c32627e

Browse files
authored
Merge pull request carpentries-incubator#18 from gadgil48/gadgil48/266_move_imports
Moved imports from inside functions to the top of the files
2 parents 25a9bcc + efe4a96 commit c32627e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import numpy as np
44
import numpy.testing as npt
55

6+
from inflammation.models import daily_mean
67

78
def test_daily_mean_zeros():
89
"""Test that mean function works for an array of zeros."""
9-
from inflammation.models import daily_mean
10+
1011

1112
test_input = np.array([[0, 0],
1213
[0, 0],
@@ -19,7 +20,6 @@ def test_daily_mean_zeros():
1920

2021
def test_daily_mean_integers():
2122
"""Test that mean function works for an array of positive integers."""
22-
from inflammation.models import daily_mean
2323

2424
test_input = np.array([[1, 2],
2525
[3, 4],

tests/test_patient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Tests for the Patient model."""
22

3+
from inflammation.models import Patient
34

45
def test_create_patient():
5-
from inflammation.models import Patient
66

77
name = 'Alice'
88
p = Patient(name=name)

0 commit comments

Comments
 (0)