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
Andrii Pryz
committed
Feb 15, 2014
1 parent
7fea1ad
commit 32abd76
Showing
19 changed files
with
154 additions
and
43 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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import datetime | ||
from django.test import TestCase | ||
from django.test.client import Client | ||
from apps.pages.models import Page, Page_translation | ||
|
||
|
||
class ViewTestCase(TestCase): | ||
def setUp(self): | ||
some_page = Page.objects.create(id=1, | ||
slug='index', | ||
color='#FDA132', | ||
photo='images/photo.png', | ||
sortorder=1, | ||
status=1, | ||
ptype=1, | ||
updated_at=datetime.datetime.now(), | ||
created_at=datetime.datetime.now()) | ||
|
||
Page_translation.objects.create(id=1, | ||
page=some_page, | ||
lang='en', | ||
menu='Main', | ||
col_central='lorem ipsum', | ||
col_bottom_1='lorem ipsum', | ||
col_bottom_2='lorem ipsum', | ||
col_bottom_3='lorem ipsum', | ||
meta_title='Welcome!', | ||
meta_description='This is mane page!', | ||
meta_keywords='Python3, Django', | ||
photo_alt='', | ||
updated_at=datetime.datetime.now(), | ||
created_at=datetime.datetime.now()) | ||
|
||
self._client = Client() | ||
|
||
def test_view(self): | ||
|
||
response = self._client.get('/en/index.html') | ||
self.assertEqual(response.status_code, 200) |
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
Binary file not shown.
Binary file modified
BIN
+812 Bytes
(120%)
docs/build/doctrees/Technical specification/Next_Releases.doctree
Binary file not shown.
Binary file not shown.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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