mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 08:38:26 +01:00
24 lines
710 B
Python
24 lines
710 B
Python
import os
|
|
import unittest
|
|
from pathlib import Path
|
|
from gitinspector import blame
|
|
|
|
class TestBlameModule(unittest.TestCase):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
pass
|
|
|
|
def setUp(self):
|
|
self.TEST_BASEDIR = Path(os.path.dirname(os.path.abspath(__file__)))
|
|
self.PROJECT_BASEDIR = Path(self.TEST_BASEDIR).parent
|
|
self.MODULE_BASEDIR = Path(self.PROJECT_BASEDIR, 'gitinspector')
|
|
self.CWD = os.getcwd()
|
|
|
|
def test_BlameEntry_attrs(self):
|
|
blame_entry = blame.BlameEntry()
|
|
expected = 0
|
|
self.assertEqual(expected, blame_entry.rows)
|
|
self.assertEqual(expected, blame_entry.skew)
|
|
self.assertEqual(expected, blame_entry.comments)
|
|
|