-
Notifications
You must be signed in to change notification settings - Fork 0
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
Upgrade python version in tests action and remove pytest dependency #59
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
pyproject.toml
Outdated
@@ -22,12 +22,15 @@ importlib-resources = "^5.12.0" | |||
uvicorn = "^0.21.1" | |||
pydantic = "^2.5.2" | |||
pydantic-settings = "^2.1.0" | |||
pytest = "^7.4.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pytest = "^7.4.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good idea, but then I should modify the action, because as it is it installs pytest from the repo dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it wlorked!
@@ -30,7 +30,8 @@ def test_ensembl_exons( | |||
mocker.patch("schug.endpoints.exons.stream_resource", return_value=exons_lines) | |||
|
|||
# WHEN sending a request to Biomart to retrieve exons in the given build | |||
response: Response = client.get(f"{endpoints.ENSEMBL_EXONS}?build={build}") | |||
response: Response = client.get(f"{endpoints.ENSEMBL_EXONS.value}?build={build}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With python 3.11 and if you make the
Endpoints(str, Enum)
a StrEnum instead you do not have to coerce using .value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it work also with python 3.8?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only with >=3.11 - something for the future then.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This PR adds | fixes:
How to test:
Review:
This version is a: