implement fill color option for boxes, start wx integration
This commit is contained in:
@ -1,13 +1,10 @@
|
||||
import unittest
|
||||
import pandas as pd
|
||||
from util import BARS
|
||||
from util import BARS, Tester
|
||||
from lightweight_charts import Chart
|
||||
|
||||
|
||||
class TestChart(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.chart = Chart()
|
||||
|
||||
class TestChart(Tester):
|
||||
def test_data_is_renamed(self):
|
||||
uppercase_df = pd.DataFrame(BARS.copy()).rename({'date': 'Date', 'open': 'OPEN', 'high': 'HIgh', 'low': 'Low', 'close': 'close', 'volUME': 'volume'})
|
||||
result = self.chart._df_datetime_format(uppercase_df)
|
||||
@ -19,9 +16,6 @@ class TestChart(unittest.TestCase):
|
||||
self.assertEqual(result0, self.chart.lines()[0])
|
||||
self.assertEqual(result1, self.chart.lines()[1])
|
||||
|
||||
def tearDown(self):
|
||||
self.chart.exit()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user