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

alphagov / digitalmarketplace-utils
85%
master: 94%

Build:
Build:
LAST BUILD BRANCH: al-ldeb-wtform-errors
DEFAULT BRANCH: master
Repo Added 19 Nov 2015 03:31PM UTC
Files 51
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 adding_date_logic
branch: adding_date_logic
CHANGE BRANCH
x
Reset
  • adding_date_logic
  • 101-move-csrf-session-expired-message-to-utils
  • 137170159-Notify-integration
  • 14.0.0
  • 14.0.1
  • 14.1.0
  • 140127375-nbsp-filter
  • 15.0.0
  • 15.1.0
  • 15.10.0
  • 15.11.0
  • 15.12.0
  • 15.2.0
  • 15.3.0
  • 15.4.0
  • 15.5.0
  • 15.6.0
  • 15.6.1
  • 15.7.0
  • 15.7.1
  • 15.8.0
  • 15.8.1
  • 15.9.0
  • 15.9.1
  • 16.0.0
  • 16.1.0
  • 16.2.0
  • 16.2.1
  • 169-file-upload-sniffing-type-restrictions
  • 17.1.0
  • 17.2.0
  • 17.3.1
  • 17.3.2
  • 17.3.3
  • 17.4.0
  • 18-flask-1x-upgrade
  • 18.0.0
  • 19.0.0
  • 19.0.1
  • 19.1.0
  • 19.2.0
  • 19.3.0
  • 19.4.0
  • 19.5.0
  • 19.6.0
  • 19.7.0
  • 19.7.1
  • 19.7.2
  • 19.8.0
  • 19.8.1
  • 19.9.0
  • 20.0.0
  • 20.1.0
  • 21.0.0
  • 21.1.0
  • 21.1.1
  • 21.10.0
  • 21.11.0
  • 21.2.0
  • 21.2.1
  • 21.2.2
  • 21.2.3
  • 21.3.0
  • 21.4.0
  • 21.5.0
  • 21.6.0
  • 21.7.0
  • 21.7.1
  • 21.8.0
  • 21.9.0
  • 22.0.0
  • 22.1.0
  • 228-pip-is-case-insensitive-and-our-requirements-freeze-job-is-not
  • 23.0.0
  • 23.1.0
  • 23.1.1
  • 24.0.0
  • 24.0.1
  • 24.0.2
  • 24.0.3
  • 24.0.4
  • 24.1.0
  • 25.0.0
  • 25.0.1
  • 25.0.2
  • 25.0.3
  • 25.1.0
  • 25.2.0
  • 26.0.0
  • 26.1.0
  • 26.2.0
  • 26.2.1
  • 26.2.2
  • 27.0.0
  • 27.1.0
  • 27.1.1
  • 27.1.2
  • 27.2.0
  • 27.2.1
  • 27.2.2
  • 28.0.0
  • 28.0.1
  • 28.0.2
  • 28.0.3
  • 28.1.0
  • 28.2.0
  • 28.2.1
  • 28.3.0
  • 28.4.0
  • 28.5.0
  • 28.6.0
  • 28.7.0
  • 28.8.0
  • 29.0.0
  • 30.0.0
  • 31.0.0
  • 31.0.1
  • 31.1.0
  • 31.1.1
  • 31.2.0
  • 31.2.1
  • 31.3.0
  • 31.3.1
  • 31.3.2
  • 31.4.0
  • 32.0.0
  • 33.0.0
  • 33.0.1
  • 33.1.0
  • 34.0.0
  • 34.1.0
  • 34.1.1
  • 34.2.0
  • 34.3.0
  • 34.4.0
  • 34.5.0
  • 34.6.0
  • 35.0.0
  • 35.1.0
  • 35.1.1
  • 35.2.0
  • 35.3.0
  • 35.4.0
  • 36.0.0
  • 36.0.1
  • 36.0.2
  • 36.1.0
  • 36.10.0
  • 36.10.1
  • 36.11.0
  • 36.11.1
  • 36.12.0
  • 36.2.0
  • 36.2.1
  • 36.2.2
  • 36.3.0
  • 36.4.0
  • 36.5.0
  • 36.5.1
  • 36.6.0
  • 36.7.0
  • 36.8.0
  • 36.9.0
  • 362-external-route-failure-for-frameworkfamily-opportunities-when-frameworkfamily-suppliers
  • 37.0.0
  • 37.1.0
  • 38.0.0
  • 38.1.0
  • 38.2.0
  • 38.3.0
  • 39.0.0
  • 39.1.0
  • 39.2.0
  • 39.3.0
  • 39.4.0
  • 39.4.1
  • 39.5.0
  • 39.6.0
  • 40.0.0
  • 40.1.0
  • 40.2.0
  • 40.3.0
  • 40.4.0
  • 40.5.0
  • 40.6.0
  • 40.6.1
  • 40.6.2
  • 40.6.3
  • 40.7.0
  • 40.8.0
  • 40.9.0
  • 40.9.1
  • 41.0.0
  • 41.1.0
  • 41.2.0
  • 41.2.1
  • 42.0.0
  • 42.0.1
  • 42.1.0
  • 42.2.0
  • 42.2.1
  • 42.3.0
  • 42.4.0
  • 42.5.0
  • 42.6.0
  • 42.7.0
  • 42.8.0
  • 42.8.1
  • 42.8.2
  • 426-move-metrics-blueprint-to-utils
  • 43.0.0
  • 43.1.0
  • 43.2.0
  • 43.3.0
  • 43.4.0
  • 431-rm-dmutilsmetrics
  • 435-spike-figure-out-why-werkzeug-0150-is-breaking-everything
  • 44-password-reset-link-from-logged-in-session
  • 44.0.0
  • 44.0.1
  • 44.1.0
  • 44.10.0
  • 44.11.0
  • 44.2.0
  • 44.2.1
  • 44.3.0
  • 44.4.0
  • 44.5.0
  • 44.7.0
  • 44.8.0
  • 44.8.1
  • 44.8.2
  • 44.8.3
  • 44.9.0
  • 45.0.0
  • 45.0.1
  • 45.0.2
  • 45.0.3
  • 45.0.4
  • 45.0.6
  • 45.1.0
  • 45.1.1
  • 45.2.0
  • 45.3.1
  • 45.4.0
  • 45.5.0
  • 45.6.0
  • 46.0.0
  • 46.1.0
  • 46.1.1
  • 46.1.2
  • 46.2.0
  • 46.2.1
  • 46.2.2
  • 46.3.0
  • 46.3.1
  • 47.0.0
  • 47.1.0
  • 47.1.1
  • 47.2.0
  • 48.0.0
  • 48.0.1
  • 48.0.2
  • 48.0.3
  • 48.1.0
  • 48.2.0
  • 48.3.0
  • 48.3.1
  • 48.4.0
  • 48.4.1
  • 48.5.0
  • 48.6.0
  • 48.7.0
  • 48.8.0
  • 480-overnight-error-adding-email-to-mailchimp-list
  • 49.0.0
  • 50.0.0
  • 50.0.1
  • 538-set-sensible-timeout-on-mailchimp-client
  • Add-retry-to-mandrill-requests
  • BUGFIX-notifications-added-to-pip-upgrade
  • BUGFIX-reintroduce_flask_featureflags_in__init__
  • BUGFIX-reintroduce_flask_featureflags_in_init
  • BUGFIX-repair-email-imports
  • BUGFIX-update-kwarg-for-new-client-changes
  • DMSandboxEnvironment
  • NO-TICKET-Move-requirements-to-setup-for-utils-lib
  • NO-TICKET-specify-packages
  • NO-TICKET-version-bump-23.1.2
  • NOTICKET-remove-log-to-null-session-fixture
  • Update-mailchimp-error-handling-for-new-version
  • add-camel-case-filter
  • add-delete-method
  • add-external-views-from-briefs
  • add-generic-document-path
  • add-get-and-delete-to-s3
  • add-host-to-server
  • add-length-to-email-validator
  • add-license
  • add-logging-readme
  • add-login-utils
  • add-metrics
  • add-pluralize-template-function
  • add-short-time-format
  • add_has_summary_page_property_to_content_section
  • add_link_filter
  • agreement-utils
  • al-ldeb-wtform-errors
  • allow-no-key-for-messages
  • allow-reply-to-override
  • bugfix-bloody-unicode
  • bump-cryptography-to-1.9
  • bump-flask-scripts
  • capitalise_filter
  • catch-all-mandrill-errors
  • cf-debug
  • change-date-to-localised
  • change-make-slug
  • check-for-csv-filetype
  • combine-user-invite-emailing
  • cpw-add-handler-to-urllib3.util.retry-logger
  • cpw-add-supplier-framework-to-api-stubs
  • cpw-catch-json-decode-errors-from-mailchimp
  • cpw-do-not-configure-urllib3-retry-logger-for-search-api
  • create-user-account-email-class
  • create-user-email-class
  • csv-generator-rehash
  • custom-s3-timestamp
  • dh-add-in-support-page
  • dh-add-missing-external-routes
  • dh-add-user-research
  • dh-buyer-external-route
  • dh-logout-external
  • dh-user-research-url
  • dm-log-path-to-stdout
  • document-use-of-datetime-formats
  • dont-localise-date-displays
  • drop-leading-zeroes
  • drop-old-key-support
  • drop-servicetypes-type-check
  • email-tokens-module
  • encrypt-tokens
  • error-order-and-price-id
  • external-route-for-opportunities-page
  • extract_content_loader
  • extracting_content_loader
  • fallback-to-aws-timestamp-if-dm-timestamp-not-set
  • file-format-checking
  • file_is_image
  • fix-badge-urls
  • fix-bool-false-bug
  • fix-invalid-token-log-message
  • fix-log-double-formatting
  • fix-logger-failure-mode
  • fix-stupid-kk-error
  • fix_flask_ext_imports
  • flake8
  • format-links-classes
  • format-links-classes-simple
  • format_links_python3
  • generate-agreement-upload-filenames
  • generate-download-filename-method
  • genericise-and-document-get-message
  • get-question-by-slug
  • handle-unknown-error-keys
  • improve-changelog
  • improve-find-users
  • inject-base-template-data-in-init
  • inline-option-with-filename
  • iso-datetime-formatter
  • jk-bump-requirements
  • jk-update-notify-client
  • ks-536-dependency-review-for-utils
  • ks-allow-py37-and-up
  • ks-declaration-document-upload
  • ks-errorhandling-fixes
  • ks-fix-external-routes
  • ks-footer-external-urls
  • ks-mailchimp-invalid-fix
  • ks-mailchimp-subscribe-happy-path
  • ks-mailchimp-unsubscribed-user
  • ks-move-scripts-helpers-to-utils
  • ks-optional-error-message-in-templates
  • ks-pyup-sunday
  • ks-remove-unittest
  • ks-set-flask-env-config-var
  • ks-upgrade-mailchimp
  • ks-xframe-options
  • lab-pricing
  • ldeb-125-validate-email-address-function
  • ldeb-136-upgrade-notify
  • ldeb-152-requirements-updates
  • ldeb-add-ampersand-email-separator
  • ldeb-add-country-code-helper
  • ldeb-add-dst-formatter
  • ldeb-add-handler-to-flask_wtf.csrf-logger
  • ldeb-add-mailchimp-json-response-to-error-logs
  • ldeb-add-python-badge
  • ldeb-add-python-requires-spec
  • ldeb-add-selection-button-value-property
  • ldeb-add-supplier-questions-external-route
  • ldeb-add-supplier-questions-external-route-fix
  • ldeb-brief-stub
  • ldeb-change-search-api-port
  • ldeb-date-field
  • ldeb-dmforms-text-area-widget
  • ldeb-dmradiofield-choices-constructor
  • ldeb-ergonomic-dm-notify-client
  • ldeb-fix-sub-country-code-none
  • ldeb-fix-widget-context-argument-not-in-field
  • ldeb-fix-widget-kwarg-bug
  • ldeb-forms-module-to-package
  • ldeb-list-app-routes-only
  • ldeb-pin-boto3-to-range
  • ldeb-pin-werkzeug
  • ldeb-python-venv
  • ldeb-pyup-requirements-test-update-false
  • ldeb-remove-travis-workaround
  • ldeb-update-govuk-country-register
  • ldeb-wtfields-reveal
  • ldeb-wtforms-dmfields
  • lfdebrux-patch-1
  • log-500-with-error
  • log-notification-email-id
  • log-to-stdout
  • logger-thing
  • make-regex-less-catastrophic
  • master
  • md-add-preserve-line-break-filter
  • microsecond-log-timestamps
  • millisecond-log-time-format
  • mit-license
  • move_csv_iter
  • multiple-recipient-emails
  • multiquestion-questions
  • multiquestion-validation-related-fixes
  • no-supplier-name-in-agreement-document-path
  • password-reset-no-email
  • password-reset-token-timing
  • pc-crytography-pip
  • pc-make-markdown-missing
  • pc-stupid-tests-for-get-extension
  • pc_accurately_announce_assurance
  • pc_allow_abbreviations
  • pc_fix_form_fields
  • pc_optional_content_disposition_header
  • pc_squeeze_steps_into_sections
  • pc_supplier_reply_responses
  • pc_universal_users_utility
  • pc_write_supplier_responses
  • percentage-to-number
  • pin-mailchimp3
  • prevent-timeouts-when-fetching-email-lists
  • price-formatting-changes
  • print-pricing-price
  • py3-headers
  • pytest-3x
  • python3
  • pyup-scheduled-update-2019-02-11
  • 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-08
  • pyup-scheduled-update-2019-04-15
  • 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-05-20
  • pyup-scheduled-update-2019-05-27
  • pyup-scheduled-update-2019-06-02
  • pyup-scheduled-update-2019-06-09
  • pyup-scheduled-update-2019-06-16
  • remove-apiclient
  • remove-bc-email
  • remove-empty-fields
  • remove-hardcoded-lots
  • remove-old-user-creation-tokens
  • remove-s3-document-archiving
  • remove-short-bucket-name
  • remove-unicode-from-sanitised-supplier-names
  • remove_unused_import_from_dm_mandrill
  • rename-freeze-requirements
  • requirestest
  • reset-password-token
  • return-role-from-expired-token
  • ris-3710-document-api-breakage
  • ris-api-error-handlers
  • ris-api-stubs-family
  • ris-app-stack-fix
  • ris-app-stack-location-filter
  • ris-av-api-5008
  • ris-boto-bump
  • ris-boto3
  • ris-break-my-environment
  • ris-changelog-44-0-0-additions
  • ris-cookie-probe
  • ris-cryptography-2.3
  • ris-default-nix
  • ris-default-nix-git-fix
  • ris-dm-gzip-middleware
  • ris-dmnotifyclient-replacement-address
  • ris-email-form-field
  • ris-email-validator-from-notify
  • ris-error-handlers-log-exc
  • ris-flask-0-12
  • ris-freeze-requirements-upgrade-pip
  • ris-get-full-signed-url
  • ris-log-formatting-missing-key-sketch
  • ris-log-request-pid
  • ris-log-sampled-debug-1-0
  • ris-log-zipkin-debug
  • ris-logged-duration
  • ris-logged-duration-tests-idfn
  • ris-mailchimp-list-methods
  • ris-mc-subscribe-robust
  • ris-no-asserts-in-live-code
  • ris-notiify-log-messages-errors
  • ris-parent-span-id
  • ris-process-thread-log-param-names
  • ris-remove-monotonic
  • ris-request-early-log-message
  • ris-request-id
  • ris-request-id-generate-span-id
  • ris-request-id-generation-zero-pad
  • ris-request-id-logging
  • ris-request-id-setting-back-population
  • ris-request-id-test-typo
  • ris-rm-mandrill
  • ris-safe-pure-path-converter
  • ris-service-page-external
  • ris-status-additional-non-dep
  • ris-status-log-status-errors
  • ris-status-timing
  • ris-timed-render-template
  • ris-timed-render-template-message-fix
  • ris-timed-render-template-threshold-double
  • ris-token-inactive-user
  • ris-tracing-debug-sampling
  • ris-updated-boto-deps
  • ris-werkzeug-0.16
  • ris-wtforms-re-revert
  • rm-install-args-for-freeze
  • seek
  • send-application-question-audit-event
  • send-email-metadata
  • shared-access-control
  • shw-add-disk-space-status-check
  • shw-add-framework-datetime-format
  • shw-add-s3-copy
  • shw-centralise-app-status-endpoint
  • shw-fix-changelog
  • shw-fix-disk-space
  • shw-flake8-per-file-ignores
  • shw-framework-framework-to-framework-family
  • shw-log-duration-of-email-calls
  • shw-log-duration-of-s3-calls
  • shw-mailchimp-generator
  • shw-migrate-api-stubs
  • shw-move-filter-from-supplier
  • shw-new-date-format
  • shw-odfpy-main-lib
  • shw-ods-from-briefs
  • shw-pin-flask
  • shw-redirect-notify-email-defaults
  • shw-remove-csrf-token
  • shw-remove-py2-tests
  • shw-revert-wtforms-upgrade
  • shw-update-api-stubs
  • shw-update-dependencies
  • shw-update-framework-stub
  • shw-update-stubs
  • shw-update-supplier-framework-stub
  • shw-wtform-error-formatting
  • signature-page-constant
  • signed-agreement-page
  • smart_filter
  • standardise_token_error_messages
  • style-guide-friendly-date-format
  • summary-page-description
  • summary-value-option-label
  • supplier-user-organisation-role
  • support-old-style-tokens
  • timestamped-files
  • unicode-error-in-dmnotify-client
  • update-brief-api-stub
  • update-changelog-to-clarify-boto-changes
  • update-cryptography-1-9
  • update-flask-featureflags
  • update-jsonlogger
  • update-odfpy
  • upgrade-wtforms
  • use-bucket-owner-full-control-instead-of-privte-acl
  • use-content-question-id
  • use-timeformat
  • user_list
  • utc-date-format-with-timezone
  • xmlutils

pending completion
1869

push

travis-ci

Chris Wynne
Set application_open_weeks key equal to length

It makes more sense to just set the key equal to the value of length
than calculate an intger, as it can now be used as a string in the
templates rather than having to perform logic on it to pluralize it.

641 of 750 relevant lines covered (85.47%)

1.71 hits per line

Relevant lines Covered
Build:
Build:
750 RELEVANT LINES 641 COVERED LINES
1.71 HITS PER LINE
Source Files on adding_date_logic
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1869 adding_date_logic Set application_open_weeks key equal to length It makes more sense to just set the key equal to the value of length than calculate an intger, as it can now be used as a string in the templates rather than having to perform logic on it to pluraliz... push 28 Jul 2016 03:32PM UTC Chris Wynne travis-ci pending completion  
1868 adding_date_logic Refactor private function on dates To a cleaner version with a one line if statement. push 28 Jul 2016 03:17PM UTC Chris Wynne travis-ci pending completion  
1866 adding_date_logic Delete .cache from repo The last commit ignored .cache so it didn't get deleted. This commit deletes .cache.... push 28 Jul 2016 09:27AM UTC Chris Wynne travis-ci pending completion  
1864 adding_date_logic Add .cache to .gitignore push 28 Jul 2016 09:23AM UTC Chris Wynne travis-ci pending completion  
1862 adding_date_logic Add a couple more tests for dates To cover published briefs having different requirement lenghths. push 27 Jul 2016 11:22AM UTC Chris Wynne travis-ci pending completion  
1860 adding_date_logic Rename test to use camel case As per convention push 27 Jul 2016 11:09AM UTC Chris Wynne travis-ci pending completion  
1858 adding_date_logic Merge branch 'adding_date_logic' of github.com:alphagov/digitalmarketplace-utils into adding_date_logic push 27 Jul 2016 11:06AM UTC Chris Wynne travis-ci pending completion  
1855 adding_date_logic Change dates['today'] to date['published_date'] It makes more sense when being used by a published brief who's pubished at date has been set and may not in fact be 'today'. push 27 Jul 2016 10:46AM UTC Chris Wynne travis-ci pending completion  
1853 adding_date_logic Bump version to 21.4.0 push 25 Jul 2016 10:12AM UTC Chris Wynne travis-ci pending completion  
1852 adding_date_logic Use six string_types to check brief Checking if publishedAt was a unicode was no good, as it wasn't compatible between python 2 and 3. Importing string_types from six is. push 20 Jul 2016 10:11AM UTC Chris Wynne travis-ci pending completion  
See All Builds (2589)
  • 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

© 2026 Coveralls, Inc