Skip to content

Commit 4a52d64

Browse files
committed
test this not main
1 parent e5f8e27 commit 4a52d64

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
/test/prototype_mtc_reference_pipeline_sharrow.zip
33
/test/.coverage
44
.idea/**
5+
**/__pycache__
6+
activitysim.log

test/test_mtc.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77

88
import pandas as pd
99
import pandas.testing as pdt
10-
import pkg_resources
1110

1211
from activitysim.core import testing, workflow
1312

1413

1514
def run_test_mtc(multiprocess=False, chunkless=False, recode=False, sharrow=False):
1615
def example_path(dirname):
17-
resource = os.path.join("examples", "prototype_mtc", dirname)
18-
return pkg_resources.resource_filename("activitysim", resource)
16+
return os.path.normpath(
17+
os.path.join(os.path.dirname(__file__), "..", dirname)
18+
)
1919

2020
def test_path(dirname):
2121
return os.path.join(os.path.dirname(__file__), dirname)
@@ -165,6 +165,7 @@ def test_mtc_progressive():
165165
import activitysim.abm # register components
166166

167167
whale = workflow.create_example("prototype_mtc", temp=True)
168+
whale.filesystem.persist_sharrow_cache()
168169

169170
assert whale.settings.models == EXPECTED_MODELS
170171
assert whale.settings.chunk_size == 0

0 commit comments

Comments
 (0)