def test_json_pair_data_filename(pair, expected_result): fn = JsonDataHandler._pair_data_filename(Path('freqtrade/hello/world'), pair, '5m') assert isinstance(fn, Path) assert fn == Path(expected_result) fn = JsonGzDataHandler._pair_data_filename(Path('freqtrade/hello/world'), pair, '5m') assert isinstance(fn, Path) assert fn == Path(expected_result + '.gz')
def test_json_pair_data_filename(pair, expected_result, candle_type): fn = JsonDataHandler._pair_data_filename( Path('freqtrade/hello/world'), pair, '5m', CandleType.from_string(candle_type)) assert isinstance(fn, Path) assert fn == Path(expected_result) fn = JsonGzDataHandler._pair_data_filename( Path('freqtrade/hello/world'), pair, '5m', candle_type=CandleType.from_string(candle_type)) assert isinstance(fn, Path) assert fn == Path(expected_result + '.gz')