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

A378485729286118 models test #1

Merged

Conversation

leits
Copy link
Member

@leits leits commented Jul 31, 2017

No description provided.

['startDate', 'endDate'])
period.startDate += timedelta(3)
with self.assertRaises(DataError):
period.validate() # {"startDate": ["period should begin before its end"]}
Copy link
Member Author

Choose a reason for hiding this comment

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

Спробуй тут теж через assertRaisesRegexp

Copy link
Member Author

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(),
Copy link
Member Author

Choose a reason for hiding this comment

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

Добре перевіряти одразу із вмістом через assertDictEqual, що окрім відсутності зміни ключів, записані правильні значення.
Тут і нижче

@leits
Copy link
Member Author

leits commented Jul 31, 2017

Притягнув свіжу версію schematics, треба поправити імпорти. ( див. у Travis CI check)

@leits leits self-assigned this Jul 31, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 0afb0c6 on sasha-kantoriz:a378485729286118_models_test into ** on openprocurement:master**.

@coveralls
Copy link

Coverage Status

Coverage increased (+5.5%) to 61.614% when pulling 965af4f on sasha-kantoriz:a378485729286118_models_test into d5bc5b9 on openprocurement:master.

@leits leits merged commit 8c25407 into openprocurement:master Aug 2, 2017
bubanoid pushed a commit to bubanoid/openregistry.api that referenced this pull request Aug 3, 2017
…ement

Add entrypoint 'openregistry.tests'
bubanoid pushed a commit to bubanoid/openregistry.api that referenced this pull request Aug 3, 2017
…ement

Add entrypoint 'openregistry.tests'
ivanka-jakimchuk pushed a commit to ivanka-jakimchuk/openregistry.api that referenced this pull request Aug 4, 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

2 participants