Skip to content

Commit d1de14a

Browse files
committed
Revert "fix relative imports in tests"
This reverts commit 3c2656e.
1 parent 3c2656e commit d1de14a

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

synthpop/ipf/test/test_ipf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pytest
33
from pandas.util import testing as pdt
44

5-
from synthpop.ipf import ipf
5+
from .. import ipf
66

77

88
def test_trivial_ipf():

synthpop/ipu/test/test_ipu.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import numpy.testing as npt
33
import pandas as pd
44
import pytest
5-
from synthpop.ipu import ipu
5+
from pandas.util import testing as pdt
6+
7+
from .. import ipu
68

79

810
@pytest.fixture(scope='module')
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pytest
2-
from synthpop.synthesizer import *
3-
from synthpop.recipes.starter import Starter
4-
from synthpop.recipes.starter2 import Starter as Starter2
2+
from ...synthesizer import *
3+
from ..starter import Starter
54

65

76
@pytest.fixture
@@ -12,8 +11,3 @@ def key():
1211
def test_starter(key):
1312
st = Starter(key, "CA", "Napa County")
1413
synthesize_all(st, num_geogs=1)
15-
16-
17-
def test_starter2(key):
18-
st = Starter2(key, "CA", "Napa County")
19-
synthesize_all(st, num_geogs=1)

synthpop/test/test_censushelpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import pytest
2-
from synthpop.census_helpers import Census
2+
from ..census_helpers import Census
33
import numpy as np
44
from pandas.util.testing import assert_series_equal
5+
import os
56

67

78
@pytest.fixture

synthpop/test/test_draw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import pytest
55
from pandas.util import testing as pdt
66

7-
from synthpop import draw
8-
from synthpop.ipu.ipu import _FrequencyAndConstraints
7+
from .. import draw
8+
from ..ipu.ipu import _FrequencyAndConstraints
99

1010

1111
@pytest.fixture

0 commit comments

Comments
 (0)