Skip to content

Commit

Permalink
Merge pull request #407 from alphagov/shw-update-stubs
Browse files Browse the repository at this point in the history
Remove keys now at framework top level
  • Loading branch information
samuelhwilliams authored Jun 13, 2018
2 parents f29878b + f8f928a commit 58de05b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Records breaking changes from major version bumps

## 39.0.0

PR [407](https://github.com/alphagov/digitalmarketplace-utils/pull/407)

Updated api_stubs.framework_agreement_details, removing keys `frameworkEndDate` and `frameworkStartDate`. Any references to these will need to be removed.

## 38.0.0

PR [#397](https://github.com/alphagov/digitalmarketplace-utils/pull/397)
Expand Down
2 changes: 1 addition & 1 deletion dmutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
import flask_featureflags # noqa


__version__ = '38.3.0'
__version__ = '39.0.0'
2 changes: 0 additions & 2 deletions dmutils/api_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ def framework_agreement_details(slug='g-cloud-7',
return {
"contractNoticeNumber": "2010/ABC-DEF",
"frameworkAgreementVersion": framework_agreement_version,
"frameworkEndDate": "01 January 2001",
"frameworkExtensionLength": "12 months",
"frameworkRefDate": "29-06-2000",
"frameworkStartDate": "05 January 2000",
"frameworkURL": f"https://www.gov.uk/government/publications/{slug}",
"lotDescriptions": lot_descriptions,
"lotOrder": lot_order,
Expand Down
6 changes: 0 additions & 6 deletions tests/test_api_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ def test_default_values(self):
assert api_stubs.framework_agreement_details() == {
"contractNoticeNumber": "2010/ABC-DEF",
"frameworkAgreementVersion": "RM1557x",
"frameworkEndDate": "01 January 2001",
"frameworkExtensionLength": "12 months",
"frameworkRefDate": "29-06-2000",
"frameworkStartDate": "05 January 2000",
"frameworkURL": f"https://www.gov.uk/government/publications/g-cloud-7",
"lotDescriptions": {},
"lotOrder": [],
Expand All @@ -50,10 +48,8 @@ def test_override_slug_version_and_variation(self):
framework_variations={"1": "blah"}) == {
"contractNoticeNumber": "2010/ABC-DEF",
"frameworkAgreementVersion": "v0.0.1",
"frameworkEndDate": "01 January 2001",
"frameworkExtensionLength": "12 months",
"frameworkRefDate": "29-06-2000",
"frameworkStartDate": "05 January 2000",
"frameworkURL": f"https://www.gov.uk/government/publications/my-custom-slug",
"lotDescriptions": {},
"lotOrder": [],
Expand All @@ -67,10 +63,8 @@ def test_with_lots(self):
assert api_stubs.framework_agreement_details(lots=lots) == {
"contractNoticeNumber": "2010/ABC-DEF",
"frameworkAgreementVersion": "RM1557x",
"frameworkEndDate": "01 January 2001",
"frameworkExtensionLength": "12 months",
"frameworkRefDate": "29-06-2000",
"frameworkStartDate": "05 January 2000",
"frameworkURL": f"https://www.gov.uk/government/publications/g-cloud-7",
"lotDescriptions": {"cloud-hosting": "Lot 1: Cloud hosting",
"cloud-support": "Lot 2: Cloud support"},
Expand Down

0 comments on commit 58de05b

Please sign in to comment.