Skip to content

Commit

Permalink
#31 Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsken committed Nov 21, 2024
1 parent 42b2674 commit 052599b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tests/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
DEMO_CHECK_DONE_GITHUB_PROJECT_URL
)
if DEMO_CHECK_DONE_GITHUB_PROJECT_URL
else None,
None,
None,
else (None, None, None)
)

HAS_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED = (
Expand Down
4 changes: 2 additions & 2 deletions tests/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_can_show_version():
not HAS_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED,
reason=REASON_SHOULD_HAVE_DEMO_CHECK_DONE_ORGANIZATION_PROJECT_CONFIGURED,
)
def test_can_set_root_dir_argument():
def test_can_set_config_argument():
with tempfile.TemporaryDirectory() as temp_folder, change_current_folder(temp_folder):
current_folder = Path(os.getcwd())
config_path = (current_folder / CONFIG_BASE_NAME).with_suffix(".yaml")
Expand All @@ -43,7 +43,7 @@ def test_can_set_root_dir_argument():
"check_done_github_app_id: ${CHECK_DONE_GITHUB_APP_ID}\n"
"check_done_github_app_private_key: ${CHECK_DONE_GITHUB_APP_PRIVATE_KEY}\n"
)
exit_code = check_done_command(["--root-dir", config_path])
exit_code = check_done_command(["--config", str(config_path)])
assert exit_code == 0


Expand Down

0 comments on commit 052599b

Please sign in to comment.