Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kristoffer Håkon Håkonsen
tdt4242-base
Commits
5c12ec6d
Commit
5c12ec6d
authored
Mar 07, 2021
by
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/secfit/users/tests.py
View file @
5c12ec6d
...
...
@@ -50,12 +50,12 @@ class UserSerializerTestCase(APITestCase):
"email"
:
'email@fake.com'
,
"username"
:
'faker'
,
"athletes"
:
[],
"password"
:
'
fuck_
django'
,
"password1"
:
'
fuck_
django'
,
"password"
:
'django
123
'
,
"password1"
:
'django
123
'
,
"phone_number"
:
'12345678'
,
"country"
:
'Norge'
,
"city"
:
'Oslo'
,
"street_address"
:
'
Mora di
'
,
"street_address"
:
'
Address
'
,
"workouts"
:
[],
"coach_files"
:
[],
"athlete_files"
:
[],
}
...
...
backend/secfit/workouts/tests.py
View file @
5c12ec6d
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment