Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Event field name ("name" -> "path") #94

Closed
wants to merge 1 commit into from

Conversation

benhoyt
Copy link
Collaborator

@benhoyt benhoyt commented Jan 16, 2024

Without this, when using Secret.changed_event and similar properties, a TypeError is raised:

>       return Event(name="secret_changed", secret=self)
E       TypeError: Event.__init__() got an unexpected keyword argument 'name'

Probably means there should be tests of these code paths too, but I'm too lazy to add that here -- just flagging the issue. :-)

Without this, when testing secret events we get a TypeError:

>       return Event(name="secret_changed", secret=self)
E       TypeError: Event.__init__() got an unexpected keyword argument 'name'
@benhoyt benhoyt mentioned this pull request Jan 16, 2024
5 tasks
Copy link
Collaborator

@PietroPasotti PietroPasotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is also fixed in #90 already, along with more tests for these paths.
Will merge v6 today

@benhoyt
Copy link
Collaborator Author

benhoyt commented Jan 17, 2024

Oops, sorry, I'd forgotten about those fixes (and that they were on a different branch). Closing.

@benhoyt benhoyt closed this Jan 17, 2024
@benhoyt benhoyt deleted the patch-1 branch January 17, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants