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

alphagov / digitalmarketplace-content-loader
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: bk-add-boolean
DEFAULT BRANCH: master
Repo Added 05 May 2016 03:16PM UTC
Files 12
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 BUGFIX-failing-YAML-test
branch: BUGFIX-failing-YAML-test
CHANGE BRANCH
x
Reset
  • BUGFIX-failing-YAML-test
  • 1.0.0
  • 1.0.1
  • 1.0.2
  • 1.1.0
  • 1.2.0
  • 1.3.0
  • 141882981-Add-question-type-to-content-loader-and-summary-display
  • 2.0.0
  • 2.0.1
  • 2.1.0
  • 2.2.0
  • 2.3.0
  • 2.4.0
  • 2.4.1
  • 2.4.2
  • 2.4.3
  • 2.5.0
  • 2.6.0
  • 2.7.0
  • 2.7.1
  • 2.8.0
  • 2.9.0
  • 3.0.0
  • 3.1.0
  • 3.1.1
  • 3.3.0
  • 3.4.0
  • 3.5.0
  • 3.5.1
  • 3.5.2
  • 3.5.3
  • 3.6.0
  • 4.0.0
  • 4.1.0
  • 4.10.0
  • 4.10.1
  • 4.11.0
  • 4.2.0
  • 4.3.0
  • 4.4.0
  • 4.4.1
  • 4.4.2
  • 4.5.0
  • 4.6.0
  • 4.7.0
  • 4.7.1
  • 4.8.0
  • 4.9.0
  • 430-remove-python-2
  • 5.0.0
  • 5.1.0
  • 5.1.1
  • 5.1.2
  • 5.1.3
  • 5.2.0
  • 5.2.1
  • 6.0.0
  • 7.0.0
  • 7.1.0
  • DMSandboxEnvironment
  • NO-TICKET-specify-packages
  • add-filter-label-values-to-question-summary
  • add-missing-utils-dep
  • asssertion-unpacking
  • checkbox-tree
  • checkbox-tree-no-parents
  • content-loader-for-service-page
  • content-message-list-of-dicts
  • content-templating
  • cpw-add-try-load-for-metadata-and-messages
  • decimal-place
  • default-error-messages
  • dm-filter-descriptions
  • dynamic-list-bug-fix
  • extract-content-from-utils
  • fix-dynamic-lists
  • fix-multi-question-ordering
  • fix-pytest-warnings
  • flake8
  • follow-up-questions
  • get-next-question-id
  • get-previous
  • get-source-for-csv
  • ks-allow-py37-and-up
  • ks-upgrade-pyyaml
  • ldeb-add-python-badge
  • ldeb-add-python-requires-spec
  • ldeb-pin-flake8
  • ldeb-update-dmutils
  • ldeb-update-requirements
  • master
  • mit-license
  • no-value-no-unit
  • ods-questions
  • option-value-getter
  • ordered-errors
  • pc-all-in-jinja
  • pc-spike-dynamic-multiquestions-or-something
  • pytest-3x
  • python3
  • ris-bump-utils-deps
  • ris-content-section-prefill-flag
  • ris-default-nix
  • ris-default-nix-fixes
  • ris-default-nix-rel-venv
  • ris-immutable-template-proxy
  • ris-implement-question-contains
  • ris-question-descriptor-from
  • ris-question-descriptor-from-2
  • ris-slugification-unicode-whitespace
  • ris-utils-lt-51
  • set-section-slug-so-special-symbols-succeed
  • shw-bugfix-question-as-section-description
  • shw-checkbox-values-to-labels
  • shw-fix-unanswered-questions-count
  • shw-flake8-per-file-ignores
  • shw-load-metadata
  • shw-one-question-per-page
  • shw-options-description-templatefield
  • shw-simplify-slug
  • shw-try-load-manifest
  • shw-update-dependencies
  • split-content-quesitons
  • split-content-questions
  • strip-followup
  • template-field-markdown-flag
  • unpack-dynamic-list
  • update_script_to_be_executable
  • upgrade-utils

pending completion
397

push

travis-ci

benvand
BUGFIX-failing-YAML-test

`tests/test_content_loader.py::TestReadYaml::test_loading_existant_file`
The above was failing on master when utils was added as a dependency, there's been a refactor recently but not sure what caused it tbh.

Fixed mock to point at instance open that is used by the function being
tested.

Compatibility fix for upcoming adding new dmutils version

To reproduce

```
git clone https://github.com/alphagov/digitalmarketplace-content-loader.git
cd digitalmarketplace-content-loader
vitrualenv venv
source venv/bin/activate
echo -e '\ngit+https://github.com/alphagov/digitalmarketplace-utils.git@25.0.1#egg=digitalmarketplace-utils==25.0.1' >> requirements.txt
pip install -r requirements_for_test.txt
py.test
```

1 of 1 new or added line in 1 file covered. (100.0%)

797 of 806 relevant lines covered (98.88%)

1.98 hits per line

Relevant lines Covered
Build:
Build:
806 RELEVANT LINES 797 COVERED LINES
1.98 HITS PER LINE
Source Files on BUGFIX-failing-YAML-test
  • Tree
  • 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
397 BUGFIX-failing-YAML-test BUGFIX-failing-YAML-test `tests/test_content_loader.py::TestReadYaml::test_loading_existant_file` The above was failing on master when utils was added as a dependency, there's been a refactor recently but not sure what caused it tbh. Fixed mock ... push 12 Apr 2017 04:26PM UTC benvand travis-ci pending completion  
383 BUGFIX-failing-YAML-test BUGFIX-failing-YAML-test digitalmarketplace-content-loader/tests/test_content_loader.py::TestReadYaml::test_loading_existant_file The above was failing on master, there's been a refactor recently but not sure what caused it tbh. Fixed mock to poi... push 10 Apr 2017 04:42PM UTC benvand travis-ci pending completion  
See All Builds (667)
  • 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