Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Unit tests for volunteer #47

Closed
wants to merge 4 commits into from
Closed

Unit tests for volunteer #47

wants to merge 4 commits into from

Conversation

vubo
Copy link
Contributor

@vubo vubo commented Jun 13, 2015

#29

  • Pep8
  • Import statements
  • Docstrings
  • File - spaces vs. tabs

@vubo vubo mentioned this pull request Jun 13, 2015
5 tasks
else:
return ObjectDoesNotExist
result = False
Copy link
Contributor

Choose a reason for hiding this comment

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

@vubo I don't think that it is necessary to have an else clause since by the time one hits the return statement the result will be unchanged and false or delete occurred and True.

@vubo
Copy link
Contributor Author

vubo commented Jun 14, 2015

@willingc thank you for the comments, I corrected this here: vubo/vms@62c95a7

from organization.models import Organization
from volunteer.models import Volunteer
from volunteer.services import *
from volunteer.services import delete_volunteer, delete_volunteer_resume, get_all_volunteers, get_volunteer_by_id, get_volunteer_resume_file_url, get_volunteers_ordered_by_first_name, has_resume_file, search_volunteers
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! If you wish to fix the line length here. You could put in parens (delete_volunteer, .... search_volunteers), then you can break the line

@willingc
Copy link
Contributor

Please rebase and squash the commit history. I'm happy to merge once that is done. 👍

@willingc
Copy link
Contributor

@vubo If you run into any roadblocks with the rebase and squash, the PyLadies issue tracker has some comments that I left for others.

Also, after you squash, you can push the newly squashed commits to this PR. You do not need to close this PR and create a new PR. Simply push to your same branch (you may need to force push) and the PR should auto-magically update.

vubo added 2 commits June 15, 2015 22:11
Unit tests for volunteer

Refactor unit tests for volunteer

Fix import
@vubo vubo closed this Jun 15, 2015
@vubo vubo deleted the testVol branch June 15, 2015 20:26
@vubo vubo mentioned this pull request Jun 15, 2015
@vubo
Copy link
Contributor Author

vubo commented Jun 15, 2015

@willingc thank you, I didn't get it completely correctly this time, but I hope, I will commit it next time 😁

@willingc
Copy link
Contributor

@vubo No worries. You are doing a great job!

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.

None yet

2 participants