Commit 5c12ec6d authored by Victoria Ahmadi's avatar Victoria Ahmadi
Browse files

Made som changes in username and password for tests.

parent beb7b077
Pipeline #114132 failed with stages
in 1 minute and 30 seconds
......@@ -50,12 +50,12 @@ class UserSerializerTestCase(APITestCase):
"email": 'email@fake.com',
"username": 'faker',
"athletes": [],
"password": 'fuck_django',
"password1": 'fuck_django',
"password": 'django123',
"password1": 'django123',
"phone_number": '12345678',
"country": 'Norge',
"city": 'Oslo',
"street_address": 'Mora di',
"street_address": 'Address',
"workouts": [],
"coach_files": [],
"athlete_files": [], }
......
......@@ -8,16 +8,16 @@ from rest_framework.test import APIRequestFactory, APITestCase
class WorkoutPermissionsTestCases(TestCase):
def setUp(self):
self.owner = get_user_model()(id=1, username='bitch', email='email@email.com', phone_number='92134654',
self.owner = get_user_model()(id=1, username='owner', email='email@email.com', phone_number='92134654',
country='Norway', city='Paradise city', street_address='Hemmelig'
)
self.owner.save()
self.user = get_user_model()(id=2, username='balle', email='email@fake.com', phone_number='92134654',
self.user = get_user_model()(id=2, username='user', email='email@fake.com', phone_number='92134654',
country='Norway', city='Hmm', street_address='Hemmelig'
)
self.user.save()
self.factory = APIRequestFactory()
self.workout = Workout.objects.create(id=1, name='Ballesnerkel', date=timezone.now(), notes='Hva vil du?',
self.workout = Workout.objects.create(id=1, name='workout', date=timezone.now(), notes='Some notes',
owner=self.owner, visibility='PU'
)
self.workout.save()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment