Skip to content

Commit f02b68c

Browse files
authored
Fix script reference, found in a submodule of the same name as the package. (#28)
* Fix script reference, found in a submodule of the same name as the package. Fixes #26. * Add test capturing missed expectation. Ref #26.
1 parent 3fd9788 commit f02b68c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

cherry_picker/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,3 +930,7 @@ def test_abort_cherry_pick_success(
930930
cherry_picker.abort_cherry_pick()
931931

932932
assert get_state() == WORKFLOW_STATES.REMOVED_BACKPORT_BRANCH
933+
934+
935+
def test_cli_invoked():
936+
subprocess.check_call('cherry_picker --help'.split())

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ requires-python = ">=3.6"
1616

1717

1818
[tool.flit.scripts]
19-
cherry_picker = "cherry_picker:cherry_pick_cli"
19+
cherry_picker = "cherry_picker.cherry_picker:cherry_pick_cli"
2020

2121
[tool.flit.metadata.requires-extra]
2222
dev = ["pytest"]

0 commit comments

Comments
 (0)