Beispiel #1
0
 def test_cache_name(self):
     whisky_1, whisky_2 = self.test_suite.get_whiskies()
     chart = Chart(reference=whisky_1, comparison=whisky_2)
     cache_dir_path = chart.cache_path()
     cache_file_path = chart.cache_name(True)
     cache_name = chart.cache_name()
     self.assertEqual(cache_name, "110113221101x111113210202.svg")
     self.assertEqual(cache_file_path, cache_dir_path.child(cache_name).absolute())
Beispiel #2
0
 def test_cache_path(self):
     base_dir = app.config['BASEDIR']
     cache_path = base_dir.child('whiskyton', 'static', 'charts')
     chart = Chart()
     self.assertEqual(str(cache_path), chart.cache_path())
Beispiel #3
0
 def test_cache_path(self):
     base_dir = app.config["BASEDIR"]
     cache_path = base_dir.child("whiskyton", "static", "charts")
     chart = Chart()
     self.assertEqual(str(cache_path), chart.cache_path())
Beispiel #4
0
 def test_cache_path(self):
     base_dir = app.config['BASEDIR']
     cache_path = base_dir.child('whiskyton', 'static', 'charts')
     chart = Chart()
     self.assertEqual(str(cache_path), chart.cache_path())