test/api: follow schema changes in tshistory_formula

The formulas are now stored in the internal metadata.
1 files changed, 6 insertions(+), 0 deletions(-)

M test/test_api.py
M test/test_api.py +6 -0
@@ 560,6 560,8 @@ 2020-01-01 00:00:00+00:00  2020-01-01 00
     }
     meta = mapi.internal_metadata('test-localformula-remoteseries')
     assert meta == {
+        'contenthash': '0ba95fba3fdaef0254bd0d52790454075aa6bb93',
+        'formula': '(+ 1 (series "remote-series"))',
         'index_dtype': '<M8[ns]',
         'index_type': 'datetime64[ns]',
         'tzaware': False,

          
@@ 612,6 614,8 @@ def test_formula_remote_autotrophic(mapi
 
     # bw compat
     assert tsa.metadata('remote-series', True) == {
+        'contenthash': 'e74bac3752e17245340a7d0cbeb2bdfccdbf3953',
+        'formula': '(series "autotrophic")',
         'index_dtype': '|M8[ns]',
         'index_type': 'datetime64[ns, UTC]',
         'tzaware': True,

          
@@ 622,6 626,8 @@ def test_formula_remote_autotrophic(mapi
     assert tsa.metadata('remote-series') == {}
 
     assert tsa.internal_metadata('remote-series') == {
+        'contenthash': 'e74bac3752e17245340a7d0cbeb2bdfccdbf3953',
+        'formula': '(series "autotrophic")',
         'index_dtype': '|M8[ns]',
         'index_type': 'datetime64[ns, UTC]',
         'tzaware': True,