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

#207 Context classes #212

Merged
merged 4 commits into from
Nov 13, 2018
Merged

#207 Context classes #212

merged 4 commits into from
Nov 13, 2018

Conversation

ArtemijRodionov
Copy link
Contributor

Closes #207

@ArtemijRodionov ArtemijRodionov self-assigned this Nov 9, 2018
@ArtemijRodionov ArtemijRodionov force-pushed the 207-context-classes branch 2 times, most recently from 97ea236 to bce9ffd Compare November 10, 2018 09:49
Copy link
Collaborator

@duker33 duker33 left a comment

Choose a reason for hiding this comment

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

one fix for pdd task body

@@ -1 +1,2 @@
# @todo #183:120m Implement Page, PaginatedProducts, ProductBrands, ProductsImages context classes.
# @todo #183:120m Implement Page, PaginatedProducts context classes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

#183 -> #207

@@ -0,0 +1,62 @@
import unittest
Copy link
Collaborator

Choose a reason for hiding this comment

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

in this tests we don't document=test contexts functionality, but it's inner (and temporary because of it) realization.
I think, that tests should be based on in/out interfaces, but not on inner calls.

But maybe it's about taste and my school

Copy link
Contributor Author

@ArtemijRodionov ArtemijRodionov Nov 13, 2018

Choose a reason for hiding this comment

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

@duker33 I agree with the point, but unfortunately we still haven't Tag fixtures, so i have to either use mocked objects or create tags at a place of use. I don't like both of these approaches, but right now mocked objects look better.

But maybe it's about taste and my school

It is rather about a difference between the black box testing and the white box testing

@ArtemijRodionov ArtemijRodionov merged commit 4b333aa into master Nov 13, 2018
@ArtemijRodionov ArtemijRodionov deleted the 207-context-classes branch November 13, 2018 21:06
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.

2 participants