-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove pkg_resources dependency" and test Python 3.12 (#183)
* Revert "Remove dependency on pkg_resources in favour of importlib (#181)" This ran into the python 3.8/3.10/3.12 cross-compatibility issue. * Add python 3.12 to azure testing This should avoid this problem happening again (and github actions should now run properly).
- Loading branch information
Showing
5 changed files
with
14 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
from __future__ import annotations | ||
|
||
import workflows.services | ||
from workflows.services.common_service import CommonService | ||
|
||
|
||
def test_known_services_is_a_dictionary(): | ||
"""Check services register build in CommonService.""" | ||
assert isinstance(workflows.services.get_known_services(), dict) | ||
|
||
|
||
def test_enumerate_services(): | ||
"""Verify we can discover the installed services.""" | ||
services = workflows.services.get_known_services() | ||
assert services.keys() == { | ||
"SampleConsumer", | ||
"SampleProducer", | ||
"SampleTxn", | ||
"SampleTxnProducer", | ||
} | ||
assert all([issubclass(service(), CommonService) for service in services.values()]) |
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