def test_secretary_tool_uses_existing_settings(performance_settings):
    assert (PerformanceSettings.objects.count() == 1)
    last_reset_date_before = json.loads(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'] == last_reset_date_before)
def test_secretary_tool_uses_existing_settings(performance_settings):
    assert (PerformanceSettings.objects.count() == 1)
    last_reset_date_before = json.loads(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'] == last_reset_date_before)