-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
38 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
djangoid/settings.py | ||
.idea/* | ||
.vscode/* | ||
.DS_Store | ||
venv | ||
db.sqlite3 | ||
|
||
|
||
# Byte-compiled / optimized / DLL files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,10 +30,10 @@ def test_author_edit_view(self): | |
) | ||
url = reverse('author:author_edit', args=[user.profile.slug]) | ||
payload = { | ||
'profile_picture': None, | ||
'profile_picture': '', | ||
'profile_name': 'Adit', | ||
'profile_email': '[email protected]', | ||
'profile_location': None, | ||
'profile_location': '', | ||
'profile_github': 'https://github.com/keda87', | ||
} | ||
|
||
|
@@ -45,24 +45,24 @@ def test_author_edit_view(self): | |
response, reverse('author:author_single', args=[user.profile.slug]) | ||
) | ||
|
||
# def test_author_edit_view_form_with_another_user(self): | ||
# user = User.objects.create_user( | ||
# username='john', | ||
# email='[email protected]', | ||
# password='testing123', | ||
# ) | ||
# another_user = User.objects.create_user( | ||
# username='stranger', | ||
# email='[email protected]', | ||
# password='testing123', | ||
# ) | ||
# | ||
# url = reverse('author:author_edit', args=[user.profile.slug]) | ||
# request = self.factory.get(path=url) | ||
# request.user = another_user | ||
# response = author_edit_view(request, user.profile.slug) | ||
# response.client = Client() | ||
# self.assertRedirects(response, reverse('forum:forum_list')) | ||
def test_author_edit_view_form_with_another_user(self): | ||
user = User.objects.create_user( | ||
username='john', | ||
email='[email protected]', | ||
password='testing123', | ||
) | ||
another_user = User( | ||
username='stranger', | ||
email='[email protected]', | ||
password='testing123', | ||
) | ||
|
||
url = reverse('author:author_edit', args=[user.profile.slug]) | ||
request = self.factory.get(path=url) | ||
request.user = another_user | ||
response = author_edit_view(request, user.profile.slug) | ||
response.client = Client() | ||
self.assertRedirects(response, reverse('forum:forum_list')) | ||
|
||
def test_author_edit_view_form(self): | ||
user = User.objects.create_user( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% load staticfiles %} | ||
{% load static %} | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
certifi==2017.7.27.1 | ||
chardet==3.0.4 | ||
defusedxml==0.5.0 | ||
Django==2.2.10 | ||
django-allauth==0.33.0 | ||
Django==3.0.3 | ||
django-allauth==0.41.0 | ||
django-autoslug==1.9.3 | ||
django-crispy-forms==1.7.0 | ||
django-markdownx==2.0.22 | ||
django-taggit==0.22.1 | ||
idna==2.6 | ||
Markdown==2.6.9 | ||
oauthlib==2.0.4 | ||
olefile==0.44 | ||
Pillow==6.2.0 | ||
Pygments==2.2.0 | ||
python3-openid==3.1.0 | ||
pytz==2017.3 | ||
requests==2.20.0 | ||
requests-oauthlib==0.8.0 | ||
urllib3==1.24.2 | ||
django-crispy-forms==1.8.1 | ||
django-markdownx==3.0.1 | ||
django-taggit==1.2.0 | ||
Pillow==7.0.0 | ||
coverage==4.4.1 |