From 8851c0147b9736bdc8d6f2830e83c0d5d95ec282 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Tue, 7 Nov 2023 22:23:29 -0500 Subject: [PATCH] fix test --- test/test_cython_bug.pyx | 4 +++- test/test_inflation.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_cython_bug.pyx b/test/test_cython_bug.pyx index d71f0251d..e002fa122 100644 --- a/test/test_cython_bug.pyx +++ b/test/test_cython_bug.pyx @@ -2,7 +2,7 @@ from quantlib.types cimport Integer, Natural, Rate, Real from cython.operator cimport dereference as deref from libcpp.vector cimport vector -from quantlib.instruments._bonds cimport FixedRateBond +from quantlib.instruments.bonds._fixedratebond cimport FixedRateBond from quantlib.time._date cimport ( Date as QlDate, todaysDate, Jul, August, September, endOfMonth ) @@ -16,6 +16,7 @@ from quantlib.time.calendars._target cimport TARGET from quantlib.time._schedule cimport Schedule from quantlib.time.dategeneration cimport DateGeneration from quantlib.time.date cimport date_from_qldate, Date +from quantlib.time._daycounter cimport DayCounter from quantlib.time.daycounters._actual_actual cimport ActualActual from quantlib.time.daycounters.actual_actual cimport Convention @@ -92,6 +93,7 @@ cdef FixedRateBond* get_bond_for_evaluation_date(QlDate& in_date): Calendar(), Unadjusted, False, + DayCounter() ) return bond diff --git a/test/test_inflation.py b/test/test_inflation.py index 67b51d3e9..92dbe026d 100644 --- a/test/test_inflation.py +++ b/test/test_inflation.py @@ -14,7 +14,7 @@ from quantlib.time.api import ( UnitedKingdom, ModifiedFollowing, ActualActual, Schedule, Actual365Fixed, Unadjusted ) from quantlib.time.dategeneration import DateGeneration -from quantlib.instruments.bonds import CPIBond, InterpolationType +from quantlib.instruments.bonds.cpibond import CPIBond, InterpolationType from quantlib.pricingengines.bond import DiscountingBondEngine from quantlib.settings import Settings from quantlib.termstructures.inflation_term_structure import \