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

Use ABC for CookieManagerAPI #1254

Merged
merged 5 commits into from
Mar 12, 2024
Merged

Use ABC for CookieManagerAPI #1254

merged 5 commits into from
Mar 12, 2024

Conversation

jsfehler
Copy link
Collaborator

This PR:

  • Adds the __contains__ method to the CookieManagerAPI interface
  • Uses the ABC module to enforce the Splinter API

Using ABC as a base class has some advantages for creating interfaces. The abstractmethod decorator forces subclasses to implement the decorated methods. Eventually, I'd like to have DriverAPI and ElementAPI use ABC as a base class.

@jsfehler jsfehler requested a review from fsouza February 27, 2024 14:14
Copy link
Contributor

@fsouza fsouza left a comment

Choose a reason for hiding this comment

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

Sorry, somehow I missed this. LGTM

@jsfehler jsfehler merged commit e88e966 into cobrateam:master Mar 12, 2024
26 checks passed
@jsfehler jsfehler deleted the cookie_abc branch March 12, 2024 11:38
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