Skip to content

Commit 0374496

Browse files
author
Deng Huang
committed
update v0.5.2, the final version of v0.5
1 parent 76a2e89 commit 0374496

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ dist/
77
.idea/
88
*.pyc
99
.mypy_cache/
10+
poetry.lock

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ readme = "README.md"
99
python = "^3.6"
1010

1111
[tool.poetry.dev-dependencies]
12+
toml = "^0.10.2"
13+
pytest = "^6.2.5"
1214

1315
[build-system]
1416
requires = ["poetry-core>=1.0.0"]

tests/test_version.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import toml
2+
from typed_args import __version__
3+
4+
5+
def test_package_version():
6+
with open("pyproject.toml", "r") as f:
7+
pyproject_config = toml.load(f)
8+
9+
assert pyproject_config["tool"]["poetry"]["version"] == __version__

0 commit comments

Comments
 (0)