manoelhc / test-actions

Built-in function len used as condition PYL-C1802
Performance
Major
1 occurrence in this check
Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
459    # Clean up
460    while True:
461        users = client.get("/users/1").json()
462        if not len(users):463            break
464        for user in users:
465            client.delete(f'/user/{user["username"]}')