Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Aug 31, 2023
1 parent ceaf55e commit cc39d00
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 17 deletions.
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
"runserver",
"localhost:8000"
]
},
{
"name": "Pytest",
"type": "python",
"request": "test",
"justMyCode": false,
"presentation": {
"hidden": true
}
}
]
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
32 changes: 18 additions & 14 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions portal/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,14 +760,12 @@ def create_users(self):
indy_user = User.objects.get(email=indy_email)
indy_user_profile = UserProfile.objects.get(user=indy_user)

student_user = student.new_user

return (
teacher_user,
teacher_user_profile,
indy_user,
indy_user_profile,
student_user.new_user,
student.new_user,
)

def send_verify_email_reminder(
Expand Down

0 comments on commit cc39d00

Please sign in to comment.