Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change quantity to DecimalType #21

Merged

Conversation

vladkhard
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 70.194% when pulling 15cde98 on vladkhard:a451532442394170_decimal_types into 41d4288 on openprocurement:master.

@@ -263,7 +263,7 @@ def test_Item_model(self):
"name": u"item",
"code": u"39513200-3"
},
"quantity": 5,
"quantity": u'0',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Додав функціональність Decimal, а тестуєш 0?

@yarsanich
Copy link
Collaborator

prozorro-sale/openprocurement.api@f526a4f#diff-351c2e47636703a5ac5e7bf20fcee615R1006
І тесту в тебе на PATCH цього значення, як було в завданні нема.

@vladkhard vladkhard force-pushed the a451532442394170_decimal_types branch from 15cde98 to bd084ee Compare October 17, 2017 09:37
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 70.396% when pulling bd084ee on vladkhard:a451532442394170_decimal_types into 41d4288 on openprocurement:master.

@vladkhard vladkhard force-pushed the a451532442394170_decimal_types branch from bd084ee to 0793c17 Compare October 17, 2017 16:44
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 70.475% when pulling 0793c17 on vladkhard:a451532442394170_decimal_types into 41d4288 on openprocurement:master.

@vladkhard vladkhard force-pushed the a451532442394170_decimal_types branch from 0793c17 to 2f6179c Compare October 18, 2017 09:05
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 70.475% when pulling 2f6179c on vladkhard:a451532442394170_decimal_types into 41d4288 on openprocurement:master.

self.assertEqual(Decimal('0.556'), dt.to_native('0.55555'))

for number in ('-1.0', '11.0'):
with self.assertRaises(ConversionError):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут треба assertRaisesRegexp

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 70.475% when pulling 183f653 on vladkhard:a451532442394170_decimal_types into 41d4288 on openprocurement:master.

@leits leits merged commit 5053a29 into openprocurement:master Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants