Skip to content

Commit

Permalink
Test for archive filter added
Browse files Browse the repository at this point in the history
  • Loading branch information
dkratzert committed Jan 31, 2024
1 parent 8b3e013 commit fb17802
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_strf.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ def test_open_database_file(self):
self.assertEqual(True, status)
self.assertEqual(263, self.get_row_count_from_table())

def test_filter_archives(self):
self.myapp.ui.hideInArchivesCB.setChecked(False)
status = self.myapp.open_database_file('tests/test-data/test.sql')
self.assertEqual(263, self.get_row_count_from_table())
self.myapp.ui.hideInArchivesCB.setChecked(True)
# Rows without archives:
self.assertEqual(51, self.get_row_count_from_table())

def test_p4p_parser(self):
self.myapp.search_for_p4pcell('tests/test-data/test2.p4p')
self.assertEqual('14.637 9.221 15.094 90.000 107.186 90.000', self.myapp.ui.searchCellLineEDit.text())
Expand Down

0 comments on commit fb17802

Please sign in to comment.