Skip to content

Test refactor#34

Merged
dgjustice merged 4 commits intodevelopfrom
test-refactor
Jan 31, 2020
Merged

Test refactor#34
dgjustice merged 4 commits intodevelopfrom
test-refactor

Conversation

@dgjustice
Copy link
Copy Markdown
Contributor

@dgjustice dgjustice commented Dec 19, 2019

This refactor removes the test magic for "merge" operations.
I attempted to make the test code as concise as possible since it is pure boilerplate with this method.
It does, however, give us the critical ability to address corner cases and add tests that need to raise exceptions, for example.
A recent blog post backs up this line of thought, though I don't want to be accused of "monkey see, monkey do". :)

This refactor removes the test magic for "merge" operations.
I attempted to make the test code as concise as possible since it is pure boilerplate with this method.
It does, however, give us the critical ability to address corner cases and add tests that need to rase exceptions, for example.
A recent [blog post](https://testing.googleblog.com/2019/12/testing-on-toilet-tests-too-dry-make.html) backs up this line of thought, though I don't want to be accused of "monkey see, monkey do".  :)
Comment thread tests/models/test_models.py Outdated
Comment thread tests/models/test_models.py
Copy link
Copy Markdown
Contributor

@jathanism jathanism left a comment

Choose a reason for hiding this comment

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

I know y'all worked hard on this. :shipit:

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.

3 participants