Skip to content

Commit

Permalink
tests/test_kcidev: Test import functions
Browse files Browse the repository at this point in the history
Signed-off-by: Arisu Tachibana <[email protected]>
  • Loading branch information
aliceinwire committed Oct 1, 2024
1 parent cec7468 commit 044a251
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ poethepoet = "^0.29.0"
[tool.poe.tasks]
check = "./scripts/check.sh"

[tool.pytest.ini_options]
pythonpath = [
"kci-dev"
]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
8 changes: 8 additions & 0 deletions tests/test_kcidev.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ def test_kcidev_commit():
assert result.returncode == 1


def test_main():
from subcommands.commit import api_connection

print(api_connection("test"))

pass


def test_clean():
# clean enviroment
shutil.rmtree("my-new-repo/")
Expand Down

0 comments on commit 044a251

Please sign in to comment.