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

alphagov / digitalmarketplace-apiclient
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: bg-py-39
DEFAULT BRANCH: master
Repo Added 29 Dec 2015 05:13PM UTC
Files 8
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 unlock-user-on-password-reset
branch: unlock-user-on-password-reset
CHANGE BRANCH
x
Reset
  • unlock-user-on-password-reset
  • 1.0.0
  • 1.0.1
  • 1.1.0
  • 1.2.0
  • 1.3.0
  • 1.4.0
  • 10.0.0
  • 10.1.0
  • 10.2.0
  • 10.3.0
  • 10.4.0
  • 10.5.0
  • 10.6.0
  • 10.7.0
  • 10.8.0
  • 10.8.1
  • 10.9.0
  • 100-multiple-mappings
  • 101-suppliers-should-be-able-to-select-a-category-es-for-frontend
  • 11.0.0
  • 11.1.0
  • 11.2.0
  • 11.3.0
  • 11.4.0
  • 12.0.0
  • 12.1.0
  • 12.2.0
  • 13.0.0
  • 13.1.0
  • 138323285-rm_find_frameworks_iter__add_find_supplier_declarations
  • 14.0.0
  • 14.0.1
  • 14.1.0
  • 14.2.0
  • 14.3.0
  • 14.4.0
  • 14.5.0
  • 14.6.0
  • 14.7.0
  • 15.0.0
  • 15.0.1
  • 15.1.0
  • 15.1.1
  • 15.1.2
  • 15.1.3
  • 15.2.0
  • 15.3.0
  • 15.3.1
  • 155-allow-super-admin-invite-new-admin-users
  • 16.0.0
  • 16.1.0
  • 16.2.0
  • 16.3.0
  • 16.4.0
  • 16.4.1
  • 16.5.0
  • 17.0.0
  • 17.1.0
  • 17.2.0
  • 17.4.0
  • 18-flask-1x-upgrade
  • 18.0.0
  • 18.1.0
  • 19.0.0
  • 19.1.0
  • 19.10.0
  • 19.11.0
  • 19.12.0
  • 19.13.0
  • 19.13.1
  • 19.14.0
  • 19.15.0
  • 19.15.1
  • 19.2.0
  • 19.3.0
  • 19.4.0
  • 19.5.0
  • 19.6.0
  • 19.7.0
  • 19.8.0
  • 19.9.0
  • 19.9.1
  • 19.9.2
  • 19.9.3
  • 2.0.0
  • 2.1.0
  • 2.2.0
  • 2.3.0
  • 2.3.1
  • 20.0.0
  • 20.1.0
  • 20.2.0
  • 208-delete-users-code-that-takes-the-user-and-strips-all-the-personal-data-out
  • 21.0.0
  • 21.1.0
  • 21.2.0
  • 21.3.0
  • 21.4.1
  • 3.0.0
  • 3.1.0
  • 3.2.0
  • 3.3.0
  • 3.4.0
  • 3.4.1
  • 3.5.0
  • 3.5.1
  • 3.6.0
  • 3.7.0
  • 3.8.0
  • 4.0.0
  • 4.1.0
  • 495-api-client-methods-for-exportusersiter-and-exportsuppliersiter
  • 5.0.0
  • 5.1.0
  • 5.2.0
  • 6.0.0
  • 6.1.0
  • 6.2.0
  • 6.3.0
  • 6.3.1
  • 6.3.2
  • 6.3.3
  • 6.4.0
  • 6.5.0
  • 6.6.0
  • 6.7.0
  • 7.0.0
  • 7.1.0
  • 7.10.0
  • 7.11.0
  • 7.12.0
  • 7.13.0
  • 7.2.0
  • 7.2.1
  • 7.3.0
  • 7.4.0
  • 7.5.0
  • 7.6.0
  • 7.7.0
  • 7.8.0
  • 7.9.0
  • 70-update-framework-manager-user-download-list-to-include-additional-fields
  • 8.0.0
  • 8.1.0
  • 8.10.0
  • 8.10.1
  • 8.10.2
  • 8.11.0
  • 8.12.0
  • 8.13.0
  • 8.14.0
  • 8.2.0
  • 8.3.0
  • 8.4.0
  • 8.4.1
  • 8.5.0
  • 8.6.0
  • 8.7.0
  • 8.8.0
  • 8.9.0
  • 9.0.0
  • 9.1.0
  • 9.1.1
  • 9.2.0
  • BUGFIX-normalize-arg-name-personal_data_removed
  • NO-TICKET-specify-packages
  • add-agreements-audit-events
  • add-audit-ordering
  • add-brief-apiclient-methods
  • add-brief-audit-events
  • add-brief-clarification-question-audit
  • add-brief-clarification-questions
  • add-brief-times
  • add-create_framework-audit
  • add-license
  • add-published-at-for-closed-brief-stubs
  • add-test-helpers
  • add_countersign_agreement_route
  • add_dos2_to_api_stubs
  • add_name_to_update_user
  • add_route_for_putting_agreements_on_hold
  • add_update_brief_framework_id_audit_type
  • admin_extract_buyer_and_briefs_list
  • aenum
  • agreement-key
  • api-client-makefile
  • audit-accept-framework-variation
  • awards
  • backoff-retry-504-errors
  • bump-enum-1-1-6
  • buyer-email-domain-audit
  • buyers_param_for_/users
  • cancelled
  • cancelled_on_filtering_for_briefs
  • cf-debug
  • copy-my-requirements
  • countersign_agreement_route
  • cpw-add-data-supplier-id-to-find-audit-events-params
  • cpw-add-method-for-transition-dos-endpoint
  • cpw-add-retry-to-requests
  • cpw-add-update-supplier-framework-audit-event
  • cpw-copy-current-services-in-one-go
  • create-brief-response-audit-type
  • create-find-framework-suppliers-iter
  • create-supplier
  • create_submit_brief_response_route
  • deconstruct-url
  • dfeduplicate-test-fixtures
  • dm-changelog-fix
  • dm-publish-brief
  • enforce-eligible-email
  • extract-apiclient-from-dmutils
  • filter-agreements-by-status
  • filter-br
  • filter-brief-response-by-status
  • find_briefs
  • find_framework_suppliers_with_declarions_default_to_true
  • fix-api-stubs-logic
  • flake8
  • framework-agreement-audit-events
  • framework-agreement-routes
  • framework-framework
  • generic-update
  • index-multiple-objects
  • is-supplier-eligible
  • iter-method-for-briefs
  • jk-add-pyup
  • jk-bump-requirements
  • jk-remove-six-library
  • jk-update-client-remove-declarations
  • ks-add-name-param-for-suppliers
  • ks-allow-py37-and-up
  • ks-delete-declaration-audit-type
  • ks-pyup-sunday
  • ks-supplier-search-by-crn
  • ldeb-add-data-draft-service-id-to-get-audits
  • ldeb-add-get-buyer-email-domains
  • ldeb-add-python-requires-spec
  • ldeb-bump-flake8
  • ldeb-python-venv
  • ldeb-pyup-requirements-test-monthly
  • ldeb-pyup-requirements-test-update-false
  • ldeb-still-assessing
  • ldeb-update-dev-requirements
  • ldeb-update-project-audit-event
  • master
  • md-fetch-earliest-for-obj
  • md-get-audit-event
  • mit-license
  • mock
  • new_audit_events_for_brief_responses
  • notify-suppliers-of-awarded
  • one_week_or_two
  • page-questions-brief-response
  • pc-add-agreement-audits
  • pc-agreement-returned
  • pc-bring-back-brief-responses
  • pc-forgive-failing-502s
  • pc-irrevokably-inhibit-imports
  • pc-undo-unwriting-unsetting
  • pc_admin_buyers
  • pc_better_bogus_briefs
  • pluralise-agreed-variations
  • preserve-base-url-scheme
  • procurement-project-audit-events
  • procurement-projects
  • put-after-all
  • pytest-3x
  • python36
  • pyup-config
  • pyup-scheduled-update-2019-02-25
  • pyup-scheduled-update-2019-03-04
  • pyup-scheduled-update-2019-03-11
  • pyup-scheduled-update-2019-03-18
  • pyup-scheduled-update-2019-03-25
  • pyup-scheduled-update-2019-04-01
  • pyup-scheduled-update-2019-04-22
  • pyup-scheduled-update-2019-04-29
  • pyup-scheduled-update-2019-05-06
  • pyup-scheduled-update-2019-05-13
  • pyup-scheduled-update-2019-06-02
  • pyup-scheduled-update-2019-06-09
  • pyup-scheduled-update-2019-06-16
  • pyup-update-coverage-3.7.1-to-4.5.2
  • pyup-update-flake8-3.5.0-to-3.6.0
  • pyup-update-flake8-3.6.0-to-3.7.3
  • pyup-update-flake8-3.6.0-to-3.7.4
  • pyup-update-flake8-3.6.0-to-3.7.5
  • pyup-update-flake8-per-file-ignores-0.4.0-to-0.7
  • pyup-update-flake8-per-file-ignores-0.7-to-0.8
  • pyup-update-flake8-per-file-ignores-0.7-to-0.8.1
  • pyup-update-pytest-3.2.3-to-4.1.1
  • pyup-update-pytest-4.1.1-to-4.2.0
  • pyup-update-python-coveralls-2.5.0-to-2.9.1
  • pyup-update-requests-mock-0.6.0-to-1.5.2
  • question_answers
  • really-update-status
  • remaining-fa-routes
  • remove-temp-route
  • replace-enum34-with-aenum
  • requirements-update
  • result-responses
  • ris-15-bump
  • ris-annotate-self-onto-app
  • ris-antivirus-initial
  • ris-child-span-id
  • ris-clients-near-immutable
  • ris-declaration-update-audit-event
  • ris-default-nix
  • ris-default-nix-glibc-locales
  • ris-enum34
  • ris-find-audit-events-after-event-id
  • ris-find-outcomes
  • ris-find-projects-having-outcome
  • ris-find-users-user-research-opted-in
  • ris-get-supplier-frameworks-with-declarations
  • ris-ignore-response
  • ris-mailing-list-audit-event
  • ris-name-iter-methods
  • ris-new-outcome-calls
  • ris-onwards-request-headers
  • ris-prefill-declaration
  • ris-process-outcomes-audit-types
  • ris-remove-monotonic
  • ris-scan-tag-s3-put
  • ris-search-client-del-wait-for-resp
  • ris-service-edit-admin-tools
  • ris-set-sf-allow-declaration-reuse
  • ris-timeout
  • ris-timeout-retries
  • ris-unapprove-agreement
  • ris-update-declaration
  • ris-update-service-wait-for-index
  • role-based-authentication
  • send_user_id_when_countersigning_framework_agreements
  • shw-58-remove-registration-date
  • shw-active-searches-only
  • shw-add-category-aggregations
  • shw-add-supplier-fixture
  • shw-add-update-framework
  • shw-allow-direct-award-projects-ordering
  • shw-application-company-details
  • shw-bad-coverage
  • shw-get-index-from-url
  • shw-get-project-services
  • shw-lock-project-and-get-services-by-url
  • shw-log-error-message
  • shw-normalize-getter-name
  • shw-pin-flask
  • shw-remove-default-index
  • shw-remove-user-param
  • shw-search-restrict-source-fields
  • shw-update-dependencies
  • shw-update-direct-award-calls
  • shw-update-framework-stub
  • shw-update-nixfile
  • shw-update-supplier-fixture
  • signing-changes
  • signing_spike
  • temp-countersign
  • unset-framework-agreement
  • update-brief-stub
  • update-briefs-update
  • update-by-admin-audit-event
  • update-for-saved-search-data-tracking
  • update_brief_response_route
  • user-research-mailing-list
  • withdraw-brief

pending completion
685

push

travis-ci

allait
Add `unlock_user` argument flag to `.update_user_password`

Allows unlocking the user and resetting the failed login count when
the password is changed.

Since password update is the same endpoint as the user update it makes
sense to do both changes in one API request to avoid any inconsistencies
that could be caused by one of the requests failing.

Updater details are the last argument for most API client methods, so
I'm adding a new argument before `updater`, making this a breaking
change. This shouldn't be an issue in practice since the method is
currently only used by the user-frontend.

7 of 7 new or added lines in 2 files covered. (100.0%)

591 of 599 relevant lines covered (98.66%)

1.96 hits per line

Relevant lines Covered
Build:
Build:
599 RELEVANT LINES 591 COVERED LINES
1.96 HITS PER LINE
Source Files on unlock-user-on-password-reset
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
685 unlock-user-on-password-reset Add `unlock_user` argument flag to `.update_user_password` Allows unlocking the user and resetting the failed login count when the password is changed. Since password update is the same endpoint as the user update it makes sense to do both chang... push 07 Sep 2017 03:19PM UTC allait travis-ci pending completion  
See All Builds (1337)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc