You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chapter 4, service layer exercise, "decrement" should be "increment" in test names #48
In chapter 4, we are challenged to implement a deallocation service, given a link with some stubs for tests and some complete e2e tests.
There are some inaccuracies with the exercies which I have found:
What is an expected outcome of such functions? My intertpretation is that in first test we can deallocate any line with matching orderid and sku which is allocated. In the second test we deallocate the line with matching orderid, sku and qty. Is it correct?
changed the title [-]Clarification for chapter 4, service layer exercies. [/-][+]Clarification for chapter 4, service layer exercise. [/+]on Jan 31, 2022
I've found exercises quite challenging so I think it fits quite nicely :)
Also, great job on the book, have enjoyed it. Right now trying to employ DDD techniques in my day job project 👍
I'm having a question with the tests' names. As allocate decrements the available qunatity, should deallocate actually "increment" the available quantity?
changed the title [-]Clarification for chapter 4, service layer exercise. [/-][+]chapter 4, service layer exercise, "decrement" should be "increment" in test names[/+]on May 9, 2023
Activity
[-]Clarification for chapter 4, service layer exercies. [/-][+]Clarification for chapter 4, service layer exercise. [/+]hjwp commentedon Apr 23, 2022
Hello Dmitry! thanks very much for these questions, it's nice to know someone is having a go at the exercises.
I've pushed some clarifications/explanations as TODOs in the exercise code, let me know what you think?
https://github.com/cosmicpython/code/blob/chapter_04_service_layer_exercise/test_services.py#L58
hjwp commentedon Apr 23, 2022
(PS cosmicpython/book@667b2fd)
iamdbychkov commentedon Apr 25, 2022
I've found exercises quite challenging so I think it fits quite nicely :)
Also, great job on the book, have enjoyed it. Right now trying to employ DDD techniques in my day job project 👍
hjwp commentedon May 9, 2022
good luck! hey and if you have a couple of secs to write a review on amazon or goodreads or wherever you like to do that, it'd be much appreciated 😊
Xupeiyi commentedon Apr 8, 2023
I'm having a question with the tests' names. As allocate decrements the available qunatity, should deallocate actually "increment" the available quantity?
hjwp commentedon May 9, 2023
oh yes! you're quite right sorry
[-]Clarification for chapter 4, service layer exercise. [/-][+]chapter 4, service layer exercise, "decrement" should be "increment" in test names[/+]