def test_device_report_data_start_day_after_end_day(client, setup): juno = Device.objects.get(hostname="juno-01") result = device_report_data(5, 3, juno, False) # Assure there's no result for disambigous dates assert result["fail"] == 0 # nosec assert result["pass"] == 0 # nosec
def test_device_report_data(client, setup): juno = Device.objects.get(hostname="juno-01") result = device_report_data(-1, 1, juno, False) assert result["fail"] == 1 # nosec assert result["pass"] == 1 # nosec