============================= test session starts ==============================
platform linux -- Python 3.7.7, pytest-5.4.3, py-1.8.2, pluggy-0.13.1
rootdir: /home/aryaman4/pyfolio
collected 80 items

pyfolio/tests/test_capacity.py ........F                                 [ 11%]
pyfolio/tests/test_perf_attrib.py .....                                  [ 17%]
pyfolio/tests/test_pos.py ..............                                 [ 35%]
pyfolio/tests/test_round_trips.py F........                              [ 46%]
pyfolio/tests/test_tears.py ...F.............FF.....                     [ 76%]
pyfolio/tests/test_timeseries.py F................                       [ 97%]
pyfolio/tests/test_txn.py ..                                             [100%]

=================================== FAILURES ===================================
__________ CapacityTestCase.test_get_max_days_to_liquidate_by_ticker ___________

self = <pyfolio.tests.test_capacity.CapacityTestCase testMethod=test_get_max_days_to_liquidate_by_ticker>

    def test_get_max_days_to_liquidate_by_ticker(self):
    
        mdtl = get_max_days_to_liquidate_by_ticker(self.positions,
                                                   self.market_data,
                                                   max_bar_consumption=1,
                                                   capital_base=1e6,
>                                                  mean_volume_window=1)

pyfolio/tests/test_capacity.py:67: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyfolio/capacity.py:152: in get_max_days_to_liquidate_by_ticker
    liq_desc.index.levels[0].name = 'symbol'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Index(['A', 'B'], dtype='object'), value = 'symbol'

    @name.setter
    def name(self, value):
        if self._no_setting_name:
            # Used in MultiIndex.levels to avoid silently ignoring name updates.
            raise RuntimeError(
>               "Cannot set name on a level of a MultiIndex. Use "
                "'MultiIndex.set_names' instead."
            )
E           RuntimeError: Cannot set name on a level of a MultiIndex. Use 'MultiIndex.set_names' instead.

../anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas/core/indexes/base.py:1191: RuntimeError
__________________ RoundTripTestCase.test_add_closing_trades ___________________

self = <pyfolio.tests.test_round_trips.RoundTripTestCase testMethod=test_add_closing_trades>

    def test_add_closing_trades(self):
        dates = date_range(start='2015-01-01', periods=20)
        transactions = DataFrame(data=[[2, 10, 'A'],
                                       [-5, 10, 'A'],
                                       [-1, 10, 'B']],
                                 columns=['amount', 'price', 'symbol'],
                                 index=dates[:3])
        positions = DataFrame(data=[[20, 10, 0],
                                    [-30, 10, 30],
                                    [-60, 0, 30]],
                              columns=['A', 'B', 'cash'],
                              index=dates[:3])
    
        expected_ix = dates[:3].append(DatetimeIndex([dates[2] +
                                                      Timedelta(seconds=1)]))
        expected = DataFrame(data=[[2, 10, 'A'],
                                   [-5, 10, 'A'],
                                   [-1, 10., 'B'],
                                   [3, 20., 'A']],
                             columns=['amount', 'price', 'symbol'],
                             index=expected_ix)
    
        transactions_closed = add_closing_transactions(positions, transactions)
>       assert_frame_equal(transactions_closed, expected)

pyfolio/tests/test_round_trips.py:172: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pandas/_libs/testing.pyx:65: in pandas._libs.testing.assert_almost_equal
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   AssertionError: DataFrame.columns are different
E   
E   DataFrame.columns values are different (100.0 %)
E   [left]:  Index(['symbol', 'amount', 'price'], dtype='object')
E   [right]: Index(['amount', 'price', 'symbol'], dtype='object')

pandas/_libs/testing.pyx:174: AssertionError
__________ PositionsTestCase.test_create_full_tear_sheet_breakdown_3 ___________

a = (<pyfolio.tests.test_tears.PositionsTestCase testMethod=test_create_full_tear_sheet_breakdown_3>,)

    @wraps(func)
    def standalone_func(*a):
>       return func(*(a + p.args), **p.kwargs)

../anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:392: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../anaconda3/envs/pyfolio/lib/python3.7/site-packages/matplotlib/testing/decorators.py:77: in wrapped_callable
    func(*args, **kwargs)
pyfolio/tests/test_tears.py:52: in test_create_full_tear_sheet_breakdown
    **kwargs
pyfolio/tears.py:214: in create_full_tear_sheet
    estimate_intraday=False)
pyfolio/plotting.py:52: in call_w_context
    return func(*args, **kwargs)
pyfolio/tears.py:828: in create_round_trip_tear_sheet
    round_trips.print_round_trip_stats(trades)
pyfolio/round_trips.py:401: in print_round_trip_stats
    stats = gen_round_trip_stats(round_trips)
pyfolio/round_trips.py:372: in gen_round_trip_stats
    stats['pnl'] = agg_all_long_short(round_trips, 'pnl', PNL_STATS)
pyfolio/round_trips.py:80: in agg_all_long_short
    .agg(stats_dict)
../anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas/core/groupby/generic.py:253: in aggregate
    ret = self._aggregate_multiple_funcs(func)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pandas.core.groupby.generic.SeriesGroupBy object at 0x7f8dab0da410>
arg = OrderedDict([('Total profit', <function <lambda> at 0x7f8dba950f80>), ('Gross profit', <function <lambda> at 0x7f8dba9...Avg. Loss', <function <lambda> at 0x7f8dba958950>), ('Largest winning trade', 'max'), ('Largest losing trade', 'min')])

    def _aggregate_multiple_funcs(self, arg):
        if isinstance(arg, dict):
    
            # show the deprecation, but only if we
            # have not shown a higher level one
            # GH 15931
            if isinstance(self._selected_obj, Series):
>               raise SpecificationError("nested renamer is not supported")
E               pandas.core.base.SpecificationError: nested renamer is not supported

../anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas/core/groupby/generic.py:294: SpecificationError
----------------------------- Captured stdout call -----------------------------
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
_______ PositionsTestCase.test_create_round_trip_tear_sheet_breakdown_0 ________

a = (<pyfolio.tests.test_tears.PositionsTestCase testMethod=test_create_round_trip_tear_sheet_breakdown_0>,)

    @wraps(func)
    def standalone_func(*a):
>       return func(*(a + p.args), **p.kwargs)

../anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:392: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../anaconda3/envs/pyfolio/lib/python3.7/site-packages/matplotlib/testing/decorators.py:77: in wrapped_callable
    func(*args, **kwargs)
pyfolio/tests/test_tears.py:111: in test_create_round_trip_tear_sheet_breakdown
    **kwargs
pyfolio/plotting.py:52: in call_w_context
    return func(*args, **kwargs)
pyfolio/tears.py:828: in create_round_trip_tear_sheet
    round_trips.print_round_trip_stats(trades)
pyfolio/round_trips.py:401: in print_round_trip_stats
    stats = gen_round_trip_stats(round_trips)
pyfolio/round_trips.py:372: in gen_round_trip_stats
    stats['pnl'] = agg_all_long_short(round_trips, 'pnl', PNL_STATS)
pyfolio/round_trips.py:80: in agg_all_long_short
    .agg(stats_dict)
../anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas/core/groupby/generic.py:253: in aggregate
    ret = self._aggregate_multiple_funcs(func)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pandas.core.groupby.generic.SeriesGroupBy object at 0x7f8dabdbd790>
arg = OrderedDict([('Total profit', <function <lambda> at 0x7f8dba950f80>), ('Gross profit', <function <lambda> at 0x7f8dba9...Avg. Loss', <function <lambda> at 0x7f8dba958950>), ('Largest winning trade', 'max'), ('Largest losing trade', 'min')])

    def _aggregate_multiple_funcs(self, arg):
        if isinstance(arg, dict):
    
            # show the deprecation, but only if we
            # have not shown a higher level one
            # GH 15931
            if isinstance(self._selected_obj, Series):
>               raise SpecificationError("nested renamer is not supported")
E               pandas.core.base.SpecificationError: nested renamer is not supported

../anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas/core/groupby/generic.py:294: SpecificationError
_______ PositionsTestCase.test_create_round_trip_tear_sheet_breakdown_1 ________

a = (<pyfolio.tests.test_tears.PositionsTestCase testMethod=test_create_round_trip_tear_sheet_breakdown_1>,)

    @wraps(func)
    def standalone_func(*a):
>       return func(*(a + p.args), **p.kwargs)

../anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:392: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../anaconda3/envs/pyfolio/lib/python3.7/site-packages/matplotlib/testing/decorators.py:77: in wrapped_callable
    func(*args, **kwargs)
pyfolio/tests/test_tears.py:111: in test_create_round_trip_tear_sheet_breakdown
    **kwargs
pyfolio/plotting.py:52: in call_w_context
    return func(*args, **kwargs)
pyfolio/tears.py:828: in create_round_trip_tear_sheet
    round_trips.print_round_trip_stats(trades)
pyfolio/round_trips.py:401: in print_round_trip_stats
    stats = gen_round_trip_stats(round_trips)
pyfolio/round_trips.py:372: in gen_round_trip_stats
    stats['pnl'] = agg_all_long_short(round_trips, 'pnl', PNL_STATS)
pyfolio/round_trips.py:80: in agg_all_long_short
    .agg(stats_dict)
../anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas/core/groupby/generic.py:253: in aggregate
    ret = self._aggregate_multiple_funcs(func)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pandas.core.groupby.generic.SeriesGroupBy object at 0x7f8da96af350>
arg = OrderedDict([('Total profit', <function <lambda> at 0x7f8dba950f80>), ('Gross profit', <function <lambda> at 0x7f8dba9...Avg. Loss', <function <lambda> at 0x7f8dba958950>), ('Largest winning trade', 'max'), ('Largest losing trade', 'min')])

    def _aggregate_multiple_funcs(self, arg):
        if isinstance(arg, dict):
    
            # show the deprecation, but only if we
            # have not shown a higher level one
            # GH 15931
            if isinstance(self._selected_obj, Series):
>               raise SpecificationError("nested renamer is not supported")
E               pandas.core.base.SpecificationError: nested renamer is not supported

../anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas/core/groupby/generic.py:294: SpecificationError
_____________________ TestDrawdown.test_drawdown_overlaps ______________________

self = <pyfolio.tests.test_timeseries.TestDrawdown testMethod=test_drawdown_overlaps>

    def test_drawdown_overlaps(self):
        rand = np.random.RandomState(1337)
        n_samples = 252 * 5
        spy_returns = pd.Series(
            rand.standard_t(3.1, n_samples),
            pd.date_range('2005-01-02', periods=n_samples),
        )
        spy_drawdowns = timeseries.gen_drawdown_table(
            spy_returns,
            top=20).sort_values(by='Peak date')
        # Compare the recovery date of each drawdown with the peak of the next
        # Last pair might contain a NaT if drawdown didn't finish, so ignore it
        pairs = list(zip(spy_drawdowns['Recovery date'],
                         spy_drawdowns['Peak date'].shift(-1)))[:-1]
        self.assertGreater(len(pairs), 0)
        for recovery, peak in pairs:
            if recovery != pd.NaT:
>               self.assertLessEqual(recovery, peak)
E               AssertionError: NaT not less than or equal to NaT

pyfolio/tests/test_timeseries.py:186: AssertionError
=============================== warnings summary ===============================
/home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas_datareader/compat/__init__.py:7
  /home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/pandas_datareader/compat/__init__.py:7: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
    from pandas.util.testing import assert_frame_equal

pyfolio/pos.py:27
  /home/aryaman4/pyfolio/pyfolio/pos.py:27: UserWarning: Module "zipline.assets" not found; multipliers will not be applied to position notionals.
    'Module "zipline.assets" not found; multipliers will not be applied'

/home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/__init__.py:7
  /home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/__init__.py:7: UserWarning: The 'nose-parameterized' package has been renamed 'parameterized'. For the two step migration instructions, see: https://github.com/wolever/parameterized#migrating-from-nose-parameterized-to-parameterized (set NOSE_PARAMETERIZED_NO_WARN=1 to suppress this warning)
    "The 'nose-parameterized' package has been renamed 'parameterized'. "

pyfolio/tests/test_capacity.py:5
  /home/aryaman4/pyfolio/pyfolio/tests/test_capacity.py:5: FutureWarning: The pandas.datetime class is deprecated and will be removed from pandas in a future version. Import from datetime module instead.
    from pandas import (

/home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:136
/home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:136
/home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:136
/home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:136
/home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:136
/home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:136
  /home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/nose_parameterized/parameterized.py:136: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    argspec = inspect.getargspec(func)

pyfolio/tests/test_perf_attrib.py::PerfAttribTestCase::test_perf_attrib_regression
  /home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/empyrical/stats.py:445: RuntimeWarning: invalid value encountered in double_scalars
    return ending_value ** (1 / num_years) - 1

pyfolio/tests/test_perf_attrib.py::PerfAttribTestCase::test_perf_attrib_simple
  /home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/empyrical/stats.py:711: RuntimeWarning: divide by zero encountered in true_divide
    out=out,

pyfolio/tests/test_pos.py: 2 tests with warnings
pyfolio/tests/test_tears.py: 11 tests with warnings
  /home/aryaman4/anaconda3/envs/pyfolio/lib/python3.7/site-packages/numpy/lib/nanfunctions.py:1116: RuntimeWarning: All-NaN slice encountered
    overwrite_input=overwrite_input)

pyfolio/tests/test_tears.py: 18 tests with warnings
  /home/aryaman4/pyfolio/pyfolio/timeseries.py:724: DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
    stats = pd.Series()

pyfolio/tests/test_tears.py: 29 tests with warnings
  /home/aryaman4/pyfolio/pyfolio/plotting.py:805: DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
    oos_cum_returns = pd.Series([])

pyfolio/tests/test_tears.py: 22 tests with warnings
pyfolio/tests/test_timeseries.py: 1 test with warning
  /home/aryaman4/pyfolio/pyfolio/timeseries.py:541: DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
    out = pd.Series(index=returns.index)

pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_1
pyfolio/tests/test_tears.py::PositionsTestCase::test_create_txn_tear_sheet_breakdown_1
  /home/aryaman4/pyfolio/pyfolio/plotting.py:1474: DeprecationWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
    avg_returns_given_slippage = pd.Series()

pyfolio/tests/test_timeseries.py::TestDrawdown::test_get_max_drawdown_0
pyfolio/tests/test_timeseries.py::TestDrawdown::test_get_max_drawdown_1
  /home/aryaman4/pyfolio/pyfolio/timeseries.py:925: DeprecationWarning: Risk functions in pyfolio.timeseries are deprecated and will be removed in a future release. Please install the empyrical package instead.
    df_cum = cum_returns(returns, 1.0)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================ slowest test durations ============================
29.22s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_6
28.53s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_returns_tear_sheet_breakdown_3
15.89s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_3
9.32s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_round_trip_tear_sheet_breakdown_1
9.29s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_txn_pnl_matches_round_trip_pnl
9.26s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_round_trip_tear_sheet_breakdown_0
7.64s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_1
7.15s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_2
6.56s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_0
6.56s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_5
6.51s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_4
6.46s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_returns_tear_sheet_breakdown_1
5.88s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_returns_tear_sheet_breakdown_0
5.82s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_returns_tear_sheet_breakdown_2
3.33s call     pyfolio/tests/test_timeseries.py::TestBootstrap::test_calc_bootstrap_0
3.26s call     pyfolio/tests/test_timeseries.py::TestBootstrap::test_calc_bootstrap_1
3.14s call     pyfolio/tests/test_timeseries.py::TestBootstrap::test_calc_bootstrap_2
1.39s call     pyfolio/tests/test_timeseries.py::TestCone::test_bootstrap_cone_against_linear_cone_normal_returns
1.21s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_txn_tear_sheet_breakdown_1
0.73s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_simple_tear_sheet_breakdown_2
0.54s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_simple_tear_sheet_breakdown_1
0.47s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_simple_tear_sheet_breakdown_0
0.38s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_position_tear_sheet_breakdown_2
0.28s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_txn_tear_sheet_breakdown_0
0.28s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_position_tear_sheet_breakdown_1
0.28s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_position_tear_sheet_breakdown_0
0.25s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_position_tear_sheet_breakdown_3
0.09s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_interesting_times_tear_sheet_breakdown_0
0.09s call     pyfolio/tests/test_tears.py::PositionsTestCase::test_create_interesting_times_tear_sheet_breakdown_1
0.08s call     pyfolio/tests/test_timeseries.py::TestGrossLev::test_gross_lev_calculation
0.06s call     pyfolio/tests/test_perf_attrib.py::PerfAttribTestCase::test_missing_stocks_and_dates
0.06s call     pyfolio/tests/test_perf_attrib.py::PerfAttribTestCase::test_perf_attrib_regression
0.04s call     pyfolio/tests/test_perf_attrib.py::PerfAttribTestCase::test_perf_attrib_simple
0.03s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_estimate_intraday_0
0.03s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_estimate_intraday_1
0.03s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_extract_round_trips_4
0.03s call     pyfolio/tests/test_perf_attrib.py::PerfAttribTestCase::test_high_turnover_warning
0.03s call     pyfolio/tests/test_txn.py::TransactionsTestCase::test_get_turnover
0.03s call     pyfolio/tests/test_timeseries.py::TestDrawdown::test_drawdown_overlaps
0.02s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_extract_round_trips_2
0.02s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_extract_round_trips_3
0.02s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_extract_round_trips_1
0.02s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_extract_round_trips_0
0.02s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_get_low_liquidity_transactions_1
0.02s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_groupby_consecutive_0
0.02s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_groupby_consecutive_1
0.02s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_get_low_liquidity_transactions_0
0.02s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_apply_slippage_penalty_0
0.01s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_apply_slippage_penalty_1
0.01s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_apply_slippage_penalty_2
0.01s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_apply_slippage_penalty_3
0.01s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_extract_pos
0.01s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_max_median_exposure_0
0.01s call     pyfolio/tests/test_timeseries.py::TestDrawdown::test_gen_drawdown_table_relative_0
0.01s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_daily_txns_with_bar_data
0.01s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_max_median_exposure_2
0.01s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_max_median_exposure_1
0.01s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_get_max_days_to_liquidate_by_ticker
0.01s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_check_intraday_0_infer
0.01s call     pyfolio/tests/test_timeseries.py::TestDrawdown::test_gen_drawdown_table_1
0.01s call     pyfolio/tests/test_timeseries.py::TestDrawdown::test_get_max_drawdown_begins_first_day_0
0.01s call     pyfolio/tests/test_timeseries.py::TestDrawdown::test_gen_drawdown_table_0
0.01s call     pyfolio/tests/test_txn.py::TransactionsTestCase::test_adjust_returns_for_slippage
0.01s call     pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_add_closing_trades
0.01s call     pyfolio/tests/test_capacity.py::CapacityTestCase::test_days_to_liquidate_positions
0.01s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_detect_intraday_0
0.01s call     pyfolio/tests/test_pos.py::PositionsTestCase::test_detect_intraday_1
0.01s call     pyfolio/tests/test_timeseries.py::TestStats::test_beta_0

(0.00 durations hidden.  Use -vv to show these durations.)
=========================== short test summary info ============================
FAILED pyfolio/tests/test_capacity.py::CapacityTestCase::test_get_max_days_to_liquidate_by_ticker
FAILED pyfolio/tests/test_round_trips.py::RoundTripTestCase::test_add_closing_trades
FAILED pyfolio/tests/test_tears.py::PositionsTestCase::test_create_full_tear_sheet_breakdown_3
FAILED pyfolio/tests/test_tears.py::PositionsTestCase::test_create_round_trip_tear_sheet_breakdown_0
FAILED pyfolio/tests/test_tears.py::PositionsTestCase::test_create_round_trip_tear_sheet_breakdown_1
FAILED pyfolio/tests/test_timeseries.py::TestDrawdown::test_drawdown_overlaps
============ 6 failed, 74 passed, 99 warnings in 172.88s (0:02:52) =============
