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

Test - DB Models of User #61

Closed
scattm opened this issue Aug 31, 2016 · 5 comments
Closed

Test - DB Models of User #61

scattm opened this issue Aug 31, 2016 · 5 comments

Comments

@scattm
Copy link
Member

scattm commented Aug 31, 2016

Add test for DB models of User and related. Include:

  • User
  • AllowedUser
    Target: 85% coverage
@scattm scattm modified the milestone: 0.1.3 Test focus Aug 31, 2016
@caohhung
Copy link
Contributor

caohhung commented Sep 3, 2016

Test your new commit with git diff HEAD~1 | flake8 --diff

@scattm
Copy link
Member Author

scattm commented Sep 3, 2016

Ops, nothing happen.

@caohhung
Copy link
Contributor

caohhung commented Sep 5, 2016

Test cases for Models.User:

  • should_add_new_users (valid and invalid format/data type)
  • should_not_add_existed_user
  • should_set_last_login_valid_case
  • should_not_set_last_login_with_invalid_data_type
  • test_should_not_set_last_login_to_null
  • unregistered_user_login_first_time_should_be_added (both case allowed_email & disallowed_email)
  • should_set_last_update(valid and invalid format/data type)
  • rename user_email
  • should_set_is_active

Docs:

@caohhung caohhung self-assigned this Sep 5, 2016
@scattm scattm changed the title Test - DB Models Test - DB Models of User Sep 6, 2016
@scattm
Copy link
Member Author

scattm commented Sep 6, 2016

Changed issue scope.

@caohhung
Copy link
Contributor

Please kindly ignore this issue. I won't do it anymore until I know more about schedules and jobs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants