Skip to content

Commit

Permalink
Automatic version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
xfenix committed Sep 26, 2023
1 parent e2ccac0 commit 18941b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "spellcheck-microservice"
version = "3.2.0"
version = "4.0.0"
description = "Microservice for spellchecking"
authors = ["Denis Anikin <[email protected]>"]
license = "MIT"
Expand Down
6 changes: 4 additions & 2 deletions tests/test_various_views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import typing

from whole_app.settings import SETTINGS
import toml

from whole_app.settings import PATH_TO_PYPROJECT, SETTINGS


if typing.TYPE_CHECKING:
Expand All @@ -10,4 +12,4 @@
def test_healthcheck_api_good(app_client: "TestClient") -> typing.Any:
server_response = app_client.get(f"{SETTINGS.api_prefix}/health/")
assert server_response.status_code == 200
assert server_response.json()["version"] == "3.2.0"
assert server_response.json()["version"] == toml.loads(PATH_TO_PYPROJECT.read_text())["tool"]["poetry"]["version"]

0 comments on commit 18941b0

Please sign in to comment.