Skip to content

Set up and improve repository tests#57

Merged
rsanzante merged 1 commit intomainfrom
claude/work-on-tests-011CV2eFhPFdTJtVBUisuWA7
Nov 11, 2025
Merged

Set up and improve repository tests#57
rsanzante merged 1 commit intomainfrom
claude/work-on-tests-011CV2eFhPFdTJtVBUisuWA7

Conversation

@rsanzante
Copy link
Copy Markdown
Member

Move run command and assert_success assertions from test cases into helper functions for cleaner test code.

Changes:

  • Wrapper functions (check_required_folders, check_required_files, check_required_symlinks, check_addons, check_services) now include run and assert_success internally
  • Leaf functions (check_assistant_is_installed, check_project_homepage_is_browsable, check_drupal_admin_access) refactored to use run for commands and fail for assertion failures
  • Test case now calls helper functions directly without run and assert_success, making the test more readable and concise

Move `run` command and `assert_success` assertions from test cases
into helper functions for cleaner test code.

Changes:
- Wrapper functions (check_required_folders, check_required_files,
  check_required_symlinks, check_addons, check_services) now include
  `run` and `assert_success` internally
- Leaf functions (check_assistant_is_installed,
  check_project_homepage_is_browsable, check_drupal_admin_access)
  refactored to use `run` for commands and `fail` for assertion
  failures
- Test case now calls helper functions directly without `run` and
  `assert_success`, making the test more readable and concise
@rsanzante rsanzante merged commit c704631 into main Nov 11, 2025
4 checks passed
@rsanzante rsanzante deleted the claude/work-on-tests-011CV2eFhPFdTJtVBUisuWA7 branch November 11, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants