Skip to content

Commit

Permalink
Use the create_test_user() helper in older profile tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Oct 27, 2017
1 parent 71cf9bc commit 00e0e5c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tcms/profiles/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-

import http
from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import reverse

Expand Down Expand Up @@ -48,9 +47,7 @@ class TestOpenBookmarks(TestCase):
def setUpClass(cls):
super(TestOpenBookmarks, cls).setUpClass()

cls.tester = User.objects.create_user(username='bookmark_tester',
email='[email protected]',
password='password')
cls.tester = create_request_user('bookmark_tester', 'password')

bookmark_form = BookmarkForm({
'name': 'plan page',
Expand Down

0 comments on commit 00e0e5c

Please sign in to comment.