def METHOD_NAME(self, test_client):
    command = self.factory(
        start_date=datetime.datetime.now(),
        end_date=None
    )
    res = test_client.get(self.url())
    assert res.status_code == 200
    assert res.json['commands'][0]['value']['duration'].lower() == "in progress"