Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This Source Code Form is subjectfrom django import forms to the terms of the Mozilla Public
- # License, v. 2.0. If a copy of the MPL was not distributed with this
- # file, You can obtain one at http://mozilla.org/MPL/2.0/.
- import pytest
- from django.contrib.auth.models import User
- from django.test.client import Client
- class TestAvailableTasks():
- @pytest.mark.django_db
- @pytest.mark.nondestructive
- def test_create_tasks(self, base_url, selenium, task, random_title):
- password = 'mypassword'
- my_admin = User.objects.create_superuser('myuser', 'myemail@test.com', password)
- c = Client()
- c.login(username=my_admin.username, password=password)
Add Comment
Please, Sign In to add comment