ergo / pyramid_apispec

Pyramid plugin for openapi spec generation (using ApiSpec)
BSD 3-Clause "New" or "Revised" License
23 stars 10 forks source link

fix: "ignored_view_names" arg on "add_pyramid_paths" function has no effect #29

Open GaNiziolek opened 1 year ago

GaNiziolek commented 1 year ago

Passing the arg "ignored_view_names" on function "add_pyramid_paths" has not effect.

On line 117, the value of "ignored_view_names" was passed to the kwarg "ignored_views", but the function "should_ignore_view" on line 139 was looking for the kwarg "ignored_view_names", so values passed to be ignored were never read .

I also wrote tests for this.

And add python 3.10 on tox