ken-10 / poketcgdata-workflows

0 stars 0 forks source link

get_all() in api_helper.py not throwing TypeError when non-enum datatype is provided as resource parameter #16

Open ken-10 opened 10 months ago

ken-10 commented 10 months ago

Bug:

get_all function in api_helper.py will still execute when resource parameter is provided as a datatype that is not APIResource enum.

Steps to Reproduce:

  1. Call get_all() and pass a string into the 'resource' parameter

Expected Result:

If a data type that is not an APIResource enum is passed as resource parameter, function will throw TypeError.

Actual Result:

If a data type that is not an APIResource enum is passed as resource parameter, function will execute and not throw a TypeError immediatley.