Hey all! I'm working with `APIDataSet` and am havi...
# beginners-need-help
i
Hey all! I'm working with
APIDataSet
and am having some issues getting the
auth
keyword argument working. My definition looks like this:
Copy code
yaml
my_api:
  type: api.APIDataSet
  url: ${API_URL}
  auth:
    - "${USERNAME}"
    - "${PASSWORD}"
but requests expects auth to be a
tuple
or
HTTPBasicAuth
. Sending in a list like this gives back
'list' object not callable
. I also tried giving auth
!!python/tuple ["${USERNAME}, ${PASSWORD}"]
but no dice there either since pyyaml is using the safe loader and tuples aren't allowed. Any ideas?
2 Views