• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

binbashar / leverage
65%

Build:
DEFAULT BRANCH: master
Repo Added 10 Feb 2024 10:08PM UTC
Files 44
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • 157-dependencies
  • 159-fix-apply-issue
  • 195-local-user
  • 229-fix-issue-with-version
  • 248-improve-coverage
  • 259-preflight-checks
  • 599-kubeconfig-helper
  • BB-276-symlinks
  • BL-294-friendly-parsing-errors
  • FEATURE/custom-user-in-toolbox
  • Fix/versions-bump
  • add-python-3.12-to-testing-workflows
  • apply-bug-159
  • bug-301-fix-parsing-error-in-locals.tf-file
  • bug/no-role-found-error
  • bzbyrm-codex/review-issue-#21-and-propose-solution
  • chore/add-support-for-python-3.13
  • chore/deprecate-python-3.8
  • chore/support-python-3.12
  • chore/update-hcl-parser-support-3.13
  • chore/upgrade-python-hcl-library
  • coderabbitai/docstrings/3086db4
  • codex/review-issue-#21-and-propose-solution
  • debugging
  • dummy
  • enchancement/update-release-drafter-version-msg.yml
  • feat/add-opentofu-command
  • feature/support-python-3.12
  • fix-sed-macos
  • fix/confusing-error-message
  • fix/integration-tests
  • fix/restore-unit-test-suite
  • improve-test-release
  • increase-account-dir-search-depth
  • increase-compatibiliy-with-podman
  • kungfoo/path-fix
  • lv-267
  • new-sso-url
  • prop/move-list-tasks-to-run
  • requests-2.31
  • temp/accept-looped-providers
  • test
  • v1.12.2
  • v1.12.3
  • v1.12.4
  • v1.13.0
  • v1.14.0
  • v1.15.0
  • v2.1.0
  • v2.1.1
  • version-warning

15 Sep 2026 08:44PM UTC coverage: 65.343% (+4.2%) from 61.145%
35021487384

push

github

web-flow
Fix | Restore the unit test suite (#322)

* Fix | Restore the unit test suite

The unit test workflow has been failing on master since #316, across three
consecutive merges. This restores it on the whole 3.9 - 3.13 matrix.

Reconcile test_credentials.py with the dockerless design:

  #316 rewrote leverage/modules/credentials.py but left its tests untouched,
  so the module failed to import and pytest aborted during collection, which
  masked every other failure in the run. The tests now inject the runner,
  paths and config through the click context, as `pass_runner`, `pass_paths`
  and `pass_state` expect, and account for `Runner.exec` returning a
  (exit code, stdout, stderr) triple and for the `-mfa` profile suffix that
  `refresh_layer_credentials_mfa` looks up.

Fix _update_account_ids corrupting common.tfvars:

  #316 replaced the hcledit call with a non-greedy regex that stops at the
  first closing brace. On a nested `accounts` block, which is what the
  reference architecture ships, it replaced only the first account, left the
  remaining ones orphaned outside the block and produced invalid HCL with
  unbalanced braces. Replacement now scans for the matching brace, and is
  anchored so `external_accounts` is no longer a candidate match.

Fix mock target resolution on Python 3.9:

  `leverage/modules/__init__.py` re-exports the click Groups, so
  `leverage.modules.<name>` resolves to the Group rather than to the module.
  From 3.10 on mock resolves these targets through `pkgutil.resolve_name` and
  finds the module anyway, but on 3.9 it walks attributes and finds the Group,
  raising AttributeError during setup. The affected targets are now patched by
  object, which behaves the same on every supported version.

Update test_tf.py for the tfvars injected into init, added deliberately in
#316 for ref-arch v2. The tfvars are discovered by globbing, so their order
depends on the filesystem and is asserted as a set.

Use a raw string for the regex ... (continued)

514 of 1024 branches covered (50.2%)

Branch coverage included in aggregate %.

30 of 33 new or added lines in 2 files covered. (90.91%)

763 existing lines in 22 files now uncovered.

2778 of 4014 relevant lines covered (69.21%)

0.69 hits per line

Relevant lines Covered
Build:
Build:
4014 RELEVANT LINES 2778 COVERED LINES
0.69 HITS PER LINE
Source Files on master
  • Tree
  • List 44
  • Changed 38
  • Source Changed 19
  • Coverage Changed 38
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
35021487384 master Fix | Restore the unit test suite (#322) * Fix | Restore the unit test suite The unit test workflow has been failing on master since #316, across three consecutive merges. This restores it on the whole 3.9 - 3.13 matrix. Reconcile test_credenti... push 15 Sep 2026 08:45PM UTC web-flow github
65.34
17384027107 master Bump versions of twine and rich (#314) push 01 Sep 2025 05:31PM UTC web-flow github
61.14
17228394096 master Fix | Remove reference to Terraform in error message (#312) * Change error message for commands out of place * Grammar * Update lock file * Fix integration test workflows * Drop tofu image for now * Small improvement in README * Fix lock fi... push 26 Aug 2025 05:01AM UTC web-flow github
61.14
17049095307 master Chore | Add support for python 3.13 (#310) * Support python 3.13 * Make workflows use a newer python version * Update lockfile * Make it all 3.13 * Accept CodeRabbit suggestions * Fix converalls run * Small improvement in README * Fix lock... push 18 Aug 2025 06:27PM UTC web-flow github
61.14
16887675125 master Chore | Update hcl parsing library (#309) * Upgrade python-hcl2 library * Update lock file * Fix integration test workflows * Drop tofu image for now push 11 Aug 2025 05:41PM UTC web-flow github
61.14
16887551255 master Enhancement | Update release-drafter.yml (#311) push 11 Aug 2025 05:36PM UTC web-flow github
61.14
15832450392 master BL-255 | Add `tofu` command to cli (#305) * Rename TerraformContainer to TFContainer * Create tofu command * Add tofu command to cli and make 'tf' run tofu instead of terraform * Missing whitespace * Fix assertion * Black * Fix version chec... push 23 Jun 2025 06:44PM UTC web-flow github
61.14
14840926876 master BUG-301 | Fix parsing error in `locals.tf` and 'config.tf` files (#303) * Upgrade python-hcl2 to 7.0.1 * Improve file parsing error message and provide context * Only call read_text once to get file content. * Fix tests push 05 May 2025 04:09PM UTC web-flow github
60.98
14328327159 master BL-143 | Version warning (#299) * version validation * test * black * only verify version over already started projects * check toolbox version rather than ref-arch * black * more black * avoid validation when the config is not yet created... push 08 Apr 2025 08:04AM UTC web-flow github
60.98
13349071293 master BL-276 | Copy symlinks for common-variables.tf (#297) * create symlinks too rather than copying the content * black push 15 Feb 2025 10:10PM UTC web-flow github
60.66
See All Builds (290)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc