1
0
mirror of https://github.com/craigerl/aprsd.git synced 2026-06-04 23:24:55 -04:00

updated tox.ini

This commit is contained in:
2026-01-16 22:46:51 -05:00
parent f95c1a8d46
commit ce9fc3757d
4 changed files with 28 additions and 4 deletions
+2 -2
View File
@@ -131,14 +131,14 @@ class TestAPRSDStatsStoreThread(unittest.TestCase):
# Mock the collector to raise an exception
with mock.patch('aprsd.stats.collector.Collector') as mock_collector_class:
mock_collector_instance = mock.Mock()
mock_collector_instance.collect.side_effect = Exception('Test exception')
mock_collector_instance.collect.side_effect = RuntimeError('Test exception')
mock_collector_class.return_value = mock_collector_instance
# Set loop_count to match save interval
thread.loop_count = 10
# Should raise the exception
with self.assertRaises(Exception):
with self.assertRaises(RuntimeError):
thread.loop()
# Removed test_loop_count_increment as it's not meaningful to test in isolation