Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed May 13, 2023
1 parent 020811a commit 2bce0a3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_pyfileindex.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
import os
import pandas
from time import sleep
from pyfileindex import PyFileIndex

Expand Down Expand Up @@ -393,3 +394,14 @@ def test_repr_html(self):
self.assertEqual(html_str.count("table"), 2)
self.assertEqual(html_str.count("tr"), 8)
self.assertEqual(html_str.count("td"), 24)

def test_init_df_lst(self):
self.assertEqual(
type(self.fi_with_filter._init_df_lst(path_lst=[self.fi_with_filter._path])),
pandas.DataFrame
)

def test_get_changes_quick(self):
_, files_changed_lst, path_deleted_lst = self.fi_with_filter._get_changes_quick()
self.assertEqual(files_changed_lst, [])
self.assertEqual(path_deleted_lst.tolist(), [])

0 comments on commit 2bce0a3

Please sign in to comment.