Commit ec916775 authored by dmitry.mashoshin's avatar dmitry.mashoshin
Browse files

Merge branch 'mike/blacklist-auctionPeriod-on-rectification' into 'master'

fix(LRE/LSE auctionPeriod blacklist): added auctionPeriod to blacklist on active_rectification

See merge request !1571
parents b9303c6d c00a7fd6
......@@ -154,8 +154,7 @@ class ProcedureEnglish(state_machine.StateMachine):
'minimalStep',
'tenderAttempts',
'items',
'documents',
'auctionPeriod'
'documents'
)
) +
role.ImportStatusRole(
......
......@@ -161,8 +161,7 @@ class ProcedureEnglish(state_machine.StateMachine):
'minimalStep',
'tenderAttempts',
'items',
'documents',
'auctionPeriod'
'documents'
)
) +
role.ImportStatusRole(
......
......@@ -59,15 +59,25 @@ class RectificationTest:
)
@pytest.mark.parametrize('data, expected_error', [
pytest.param({
'title': {
'uk_UA': 'test',
'en_US': 'test'
}
},
pytest.param(
{
'title': {
'uk_UA': 'test',
'en_US': 'test'
}
},
does_not_raise(),
id='successful procedure update'
),
pytest.param(
{
'auctionPeriod': {
'startDate': '2222-02-22T22:22:22.222222Z'
}
},
pytest.raises(errors.DataError, match=r'^\{"auctionPeriod": "Cannot update with role owner"\}$'),
id='auctionPeriod blacklist'
),
])
def test_update_procedure(self, make_procedure, acl_context, item_data, data, expected_error):
test_procedure = make_procedure(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment