Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlujan91 committed Nov 19, 2024
1 parent bc7e17b commit 7e44e4d
Show file tree
Hide file tree
Showing 24 changed files with 18 additions and 18 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
KrusellSmithType,
)
from HARK.distributions import Uniform
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class testAggShockConsumerType(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION
from HARK.ConsumptionSaving.ConsBequestModel import (
BequestWarmGlowConsumerType,
BequestWarmGlowPortfolioType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
IndShockExplicitPermIncConsumerType,
PersistentShockConsumerType,
)
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION

GenIncDictionary = {
"CRRA": 2.0, # Coefficient of relative risk aversion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PerfForesightLabeledType,
PortfolioLabeledType,
)
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class test_PerfForesightLabeledType(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION
from HARK.ConsumptionSaving.ConsMedModel import MedShockConsumerType


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np

from HARK.ConsumptionSaving.ConsNewKeynesianModel import NewKeynesianConsumerType
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


# %% Test Transition Matrix Methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np

import HARK.ConsumptionSaving.ConsPortfolioModel as cpm
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class PortfolioConsumerTypeTestCase(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
KinkyPrefConsumerType,
PrefShockConsumerType,
)
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class testPrefShockConsumerType(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RepAgentConsumerType,
RepAgentMarkovConsumerType,
)
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class testRepAgentConsumerType(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION
from HARK.ConsumptionSaving.ConsRiskyAssetModel import IndShockRiskyAssetConsumerType


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
RiskyContribConsumerType,
init_risky_contrib,
)
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class test_(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
init_idiosyncratic_shocks,
init_lifecycle,
)
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class testIndShockConsumerType(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
init_lifecycle,
)
from HARK.ConsumptionSaving.ConsIndShockModelFast import IndShockConsumerTypeFast
from HARK.ConsumptionSaving.tests.test_IndShockConsumerType import (
from tests.ConsumptionSaving.test_IndShockConsumerType import (
CyclicalDict,
IdiosyncDict,
LifecycleDict,
)
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class testIndShockConsumerTypeFast(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from HARK.ConsumptionSaving.ConsIndShockModel import KinkedRconsumerType
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class testKinkedRConsumerType(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np

from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class testPerfForesightConsumerType(unittest.TestCase):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType
from HARK.ConsumptionSaving.ConsIndShockModelFast import PerfForesightConsumerTypeFast
from HARK.ConsumptionSaving.tests.test_PerfForesightConsumerType import (
from tests.ConsumptionSaving.test_PerfForesightConsumerType import (
testPerfForesightConsumerType,
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
distr_of_function,
expected,
)
from HARK.tests import HARK_PRECISION
from tests import HARK_PRECISION


class DiscreteDistributionTests(unittest.TestCase):
Expand Down

0 comments on commit 7e44e4d

Please sign in to comment.