Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.

Conversation

@meshy
Copy link
Owner

@meshy meshy commented Sep 21, 2014

Bad testing lead to code that wasn't correctly integrated.

@meshy
Copy link
Owner Author

meshy commented Sep 21, 2014

A look, please?

@meshy
Copy link
Owner Author

meshy commented Sep 22, 2014

Might still be broken.

@meshy
Copy link
Owner Author

meshy commented Sep 22, 2014

Should be good to go. Please review/merge.

Copy link
Collaborator

Choose a reason for hiding this comment

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

rename test class? ;]

Copy link
Owner Author

Choose a reason for hiding this comment

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

To what?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Oh, I see -- you recommended the change because this is no longer a subclass of IntegrationTestCase.

I don't think I should. This is still an integration test.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Indeed, had a double check - it's integration test. But, we never used integration in test class :P

Copy link
Owner Author

Choose a reason for hiding this comment

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

So what would you call it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

TestPageDetail seems fine. Or perhaps we should indicate test types in their names? 🐸

Copy link
Owner Author

Choose a reason for hiding this comment

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

There is already a TestPageDetail. That is the test above.

@meshy meshy mentioned this pull request Sep 22, 2014
@meshy
Copy link
Owner Author

meshy commented Sep 23, 2014

@ian-foote @kevinetienne wanna look as discussed?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you ever need to use PageHandler().view? I think this might not work as expected if you do.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I do. But I think I'm one step ahead of you. ;).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, you might be able to avoid a metaclass by using a classmethod. (For example in incuna-test-utils.)

Copy link
Owner Author

Choose a reason for hiding this comment

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

I think that the metaclass makes for a cleaner API, though. One just uses .view, and gets on with it. Perhaps I will change my mind when it comes to adding the management interface.

@LilyFirefly
Copy link
Collaborator

Docstrings.

@meshy
Copy link
Owner Author

meshy commented Sep 23, 2014

Docstrings.

For tests?!

@LilyFirefly
Copy link
Collaborator

Yes. Just a quick summary of what you're testing.

@meshy meshy mentioned this pull request Sep 23, 2014
@meshy
Copy link
Owner Author

meshy commented Sep 23, 2014

Okay. I'll do the tests from this PR, and I have added #11 for the other tests in the project.

@mlen108
Copy link
Collaborator

mlen108 commented Sep 23, 2014

For tests?!

Docstrings are for code ;]

@meshy
Copy link
Owner Author

meshy commented Sep 23, 2014

Do you mind if I do the docstrings in another PR? This one will get too overwhelming with them in, I think.

LilyFirefly pushed a commit that referenced this pull request Sep 24, 2014
@LilyFirefly LilyFirefly merged commit 133caca into master Sep 24, 2014
@LilyFirefly LilyFirefly deleted the bad-tests branch September 24, 2014 08:29
@meshy
Copy link
Owner Author

meshy commented Sep 24, 2014

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants