def test_secretary_tool_resets_settings_if_expired(expired_performance_settings):
    assert (PerformanceSettings.objects.count() == 1)
    expired_last_reset_date = json.loads(expired_performance_settings.settings)['last_reset_date']
    SecretaryTool.validate_settings()
    assert (PerformanceSettings.objects.count() == 1)
    settings_after = PerformanceSettings.objects.filter(name='perf_sheriff_bot').first()
    assert (json.loads(settings_after.settings)['last_reset_date'] != expired_last_reset_date)
def test_secretary_tool_resets_settings_if_expired(expired_performance_settings):
    assert (PerformanceSettings.objects.count() == 1)
    expired_last_reset_date = json.loads(expired_performance_settings.settings)['last_reset_date']
    SecretaryTool.validate_settings()
    assert (PerformanceSettings.objects.count() == 1)
    settings_after = PerformanceSettings.objects.filter(name='perf_sheriff_bot').first()
    assert (json.loads(settings_after.settings)['last_reset_date'] != expired_last_reset_date)