Guest User

Untitled

a guest
Apr 8th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. # This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
  2. # License, v. 2.0. If a copy of the MPL was not distributed with this
  3. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4.  
  5. import pytest
  6.  
  7. from django.contrib.auth.models import User
  8. from django.test.client import Client
  9.  
  10.  
  11. class TestAvailableTasks():
  12. @pytest.mark.django_db
  13. @pytest.mark.nondestructive
  14. def test_create_tasks(self, base_url, selenium, task, random_title):
  15. password = 'mypassword'
  16. my_admin = User.objects.create_superuser('myuser', 'myemail@test.com', password)
  17. c = Client()
  18. c.login(username=my_admin.username, password=password)
Add Comment
Please, Sign In to add comment