MAINT: AssetFinder now takes fuzzy characters on look-up, not init

This commit is contained in:
jfkirk
2015-09-15 09:38:17 -04:00
parent 6f2e1672d7
commit c16bc9f8db
2 changed files with 8 additions and 9 deletions
+3 -3
View File
@@ -303,7 +303,7 @@ class AssetFinderTestCase(TestCase):
]
)
self.env.write_data(equities_df=frame)
finder = AssetFinder(self.env.engine, fuzzy_char='@')
finder = self.env.asset_finder
asset_0, asset_1, asset_2 = (
finder.retrieve_asset(i) for i in range(3)
)
@@ -318,7 +318,7 @@ class AssetFinderTestCase(TestCase):
# Adding an unnecessary fuzzy shouldn't matter.
self.assertEqual(
asset_1,
finder.lookup_symbol('test@1', as_of, fuzzy=True)
finder.lookup_symbol('test@1', as_of, fuzzy_char='@')
)
# Shouldn't find this with no fuzzy_str passed.
@@ -326,7 +326,7 @@ class AssetFinderTestCase(TestCase):
# Should find exact match.
self.assertEqual(
asset_1,
finder.lookup_symbol('test1', as_of, fuzzy=True),
finder.lookup_symbol('test1', as_of, fuzzy_char='@'),
)
def test_lookup_symbol_resolve_multiple(self):