Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ExtensionInfo to be able to work with or without entrypoints.
ExtensionInfo, the internal class for storing various bits of data about an extension (paths, names, metadata, etc.) previously required the use of a Python EntryPoint in order to retrieve the data. This made unit tests more annoying than they should have been. Now, ExtensionInfo's constructor takes the extension class, package name, and metadata. A new `create_from_entrypoint()` class method has been added for using an EntryPoint. The old constructor still accepts one as well, but will warn about deprecated usage first. Some unit tests have also been updated to make use of this, and to test the old behavior (modernizing some of the checks while there). Testing Done: Djblets and Review Board unit tests pass. Made use of this with the new, upcoming extension testing support. Reviewed at https://reviews.reviewboard.org/r/8288/
- Loading branch information
Showing
3 changed files
with
202 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters