from diffenator.diff import diff_fonts
from itertools import permutations
import collections
from glob import glob
import os
import unittest


class TestFunctionality(unittest.TestCase):

    def setUp(self):
        _path = os.path.dirname(__file__)
        font_paths = glob(os.path.join(_path, 'data', '*.ttf'))
        self.font_path_combos = permutations(font_paths, r=2)

    def test_diff(self):
        for font_a_path, font_b_path in self.font_path_combos:
            diff = diff_fonts(font_a_path, font_b_path)
            self.assertNotEqual(diff, collections.defaultdict(dict))


if __name__ == '__main__':
    unittest.main()

from diffenator.diff import diff_fonts
from diffenator.font import InputFont
from itertools import permutations
import collections
from glob import glob
import os
import unittest


class TestFunctionality(unittest.TestCase):

    def setUp(self):
        _path = os.path.dirname(__file__)
        font_paths = glob(os.path.join(_path, 'data', '*.ttf'))
        self.font_path_combos = permutations(font_paths, r=2)

    def test_diff(self):
        for font_a_path, font_b_path in self.font_path_combos:
            font_a = InputFont(font_a_path)
            font_b = InputFont(font_b_path)
            diff = diff_fonts(font_a, font_b)
            self.assertNotEqual(diff, collections.defaultdict(dict))


if __name__ == '__main__':
    unittest.main()

Call diff_fonts with correct params
Call diff_fonts with correct params

  from diffenator.diff import diff_fonts
+ from diffenator.font import InputFont
  from itertools import permutations
  import collections
  from glob import glob
  import os
  import unittest
  
  
  class TestFunctionality(unittest.TestCase):
  
      def setUp(self):
          _path = os.path.dirname(__file__)
          font_paths = glob(os.path.join(_path, 'data', '*.ttf'))
          self.font_path_combos = permutations(font_paths, r=2)
  
      def test_diff(self):
          for font_a_path, font_b_path in self.font_path_combos:
+             font_a = InputFont(font_a_path)
+             font_b = InputFont(font_b_path)
-             diff = diff_fonts(font_a_path, font_b_path)
+             diff = diff_fonts(font_a, font_b)
              self.assertNotEqual(diff, collections.defaultdict(dict))
  
  
  if __name__ == '__main__':
      unittest.main()
  
Call diff_fonts with correct params
## Code Before:
from diffenator.diff import diff_fonts
from itertools import permutations
import collections
from glob import glob
import os
import unittest


class TestFunctionality(unittest.TestCase):

    def setUp(self):
        _path = os.path.dirname(__file__)
        font_paths = glob(os.path.join(_path, 'data', '*.ttf'))
        self.font_path_combos = permutations(font_paths, r=2)

    def test_diff(self):
        for font_a_path, font_b_path in self.font_path_combos:
            diff = diff_fonts(font_a_path, font_b_path)
            self.assertNotEqual(diff, collections.defaultdict(dict))


if __name__ == '__main__':
    unittest.main()

## Instruction:
Call diff_fonts with correct params
## Code After:
from diffenator.diff import diff_fonts
from diffenator.font import InputFont
from itertools import permutations
import collections
from glob import glob
import os
import unittest


class TestFunctionality(unittest.TestCase):

    def setUp(self):
        _path = os.path.dirname(__file__)
        font_paths = glob(os.path.join(_path, 'data', '*.ttf'))
        self.font_path_combos = permutations(font_paths, r=2)

    def test_diff(self):
        for font_a_path, font_b_path in self.font_path_combos:
            font_a = InputFont(font_a_path)
            font_b = InputFont(font_b_path)
            diff = diff_fonts(font_a, font_b)
            self.assertNotEqual(diff, collections.defaultdict(dict))


if __name__ == '__main__':
    unittest.main()
