-
Notifications
You must be signed in to change notification settings - Fork 8
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
A378485729286118 models test #1
A378485729286118 models test #1
Conversation
['startDate', 'endDate']) | ||
period.startDate += timedelta(3) | ||
with self.assertRaises(DataError): | ||
period.validate() # {"startDate": ["period should begin before its end"]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спробуй тут теж через assertRaisesRegexp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут і нижче
['startDate']) | ||
period.endDate = now | ||
period.validate() | ||
self.assertEqual(period.serialize().keys(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добре перевіряти одразу із вмістом через assertDictEqual, що окрім відсутності зміни ключів, записані правильні значення.
Тут і нижче
Притягнув свіжу версію schematics, треба поправити імпорти. ( див. у Travis CI check) |
Changes Unknown when pulling 0afb0c6 on sasha-kantoriz:a378485729286118_models_test into ** on openprocurement:master**. |
…ement Add entrypoint 'openregistry.tests'
…ement Add entrypoint 'openregistry.tests'
Currency should be only UAH
No description provided.