Skip to content

Commit 653f872

Browse files
committed
TST: Move nper tests into test class
1 parent e3c2a4e commit 653f872

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

numpy_financial/tests/test_financial.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ def test_decimal_with_when(self):
205205
npf.pv(Decimal('0.07'), Decimal('20'), Decimal('12000'),
206206
Decimal('0'), 'end'))
207207

208-
def test_broadcast(self):
209-
assert_almost_equal(npf.nper(0.075, -2000, 0, 100000., [0, 1]),
210-
[21.5449442, 20.76156441], 4)
211-
212208

213209
class TestNper:
214210
def test_basic_values(self):
@@ -233,6 +229,10 @@ def test_infinite_payments(self):
233229
def test_no_interest(self):
234230
assert_(npf.nper(0, -100, 1000) == 10)
235231

232+
def test_broadcast(self):
233+
assert_almost_equal(npf.nper(0.075, -2000, 0, 100000., [0, 1]),
234+
[21.5449442, 20.76156441], 4)
235+
236236

237237
class TestPpmt:
238238
def test_float(self):

0 commit comments

Comments
 (0)