Skip to content

Commit

Permalink
Siwtch to a font matplotlib should have by default
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCa committed Feb 22, 2024
1 parent dbe4f32 commit b722e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tools/visualization/test_tag_word_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def test_create_wordcloud_font(self):
word_dict = {'tag1': 5, 'tag2': 3, 'tag3': 7}
width = 400
height = 200
wc = tag_word_cloud.create_wordcloud(word_dict, width=width, height=height, font_path="Sarai")
wc = tag_word_cloud.create_wordcloud(word_dict, width=width, height=height, font_path="Serif")

self.assertIsInstance(wc, wordcloud.WordCloud)
self.assertEqual(wc.width, width)
self.assertEqual(wc.height, height)
self.assertIn("Sarai", wc.font_path)
self.assertIn("Serif", wc.font_path)

def test_create_wordcloud_font_direct(self):
word_dict = {'tag1': 5, 'tag2': 3, 'tag3': 7}
Expand Down

0 comments on commit b722e5f

Please sign in to comment.