Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: cms/tests/dynamic_tests/test_dynamic.py

Issue 29345468: Issue 4045 - Add Test Suite To CMS (Closed)
Patch Set: CMS Test Suite Conf and Some Tests Created June 29, 2016, 1:13 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cms/tests/dynamic_tests/conftest.py ('k') | cms/tests/static_tests/conftest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import urllib2
2 import os
3
4
5 class TestDynamic:
6 @classmethod
7 def run_test_server(cls):
8 import subprocess
9 import sys
10 sys.path.insert(0, '../')
11 sys.argv = ['filler', 'cms/tests/test_site', 'cms/tests/dynamic_tests']
12 return subprocess.Popen(['python', 'runserver.py',
13 'cms/tests/test_site'
14 ]
15 )
16
17 def test_template(self, get_pages):
18 for page in get_pages:
19 url = 'http://localhost:5000/root/{}'\
20 .format(os.path.splitext(page))
21 response = urllib2.urlopen(url)
22 assert response.code == 200
OLDNEW
« no previous file with comments | « cms/tests/dynamic_tests/conftest.py ('k') | cms/tests/static_tests/conftest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld