-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Set price of agreement when sourcing with a framework #39
Conversation
274e489
to
45bfc84
Compare
@yvaucher this needs review or is it WIP? Can you label it please? |
@lepistone as travis is failing it is WIP |
45bfc84
to
15e8b69
Compare
rebased |
with the tests fixed, 👍 |
@@ -45,7 +45,8 @@ def setUp(self): | |||
lid = self.requisition_line_model._generate_source_line( | |||
cr, uid, line) | |||
source_ids += lid | |||
self.assertTrue(len(source_ids) == 2) | |||
self.assertEqual(len(source_ids), 2, |
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.
I don't think we really need to specify failure messages with self.assert*
assertions.
Here assertEqual
will automatically say, for example, that len(source_ids)
is 0 != 2
, which is a good failure message.
👍 with a minor comment on assertions. |
@lepistone fixed |
the PR is about setting the price from the FA on sourcing line, and the tests were correct in the previous version when this was not the case.
5921349
to
964e0b2
Compare
Set price of agreement when sourcing with a framework
No description provided.