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

Unified Diff: tests/test_dynamic_server.py

Issue 29933596: Issue 5333 - Allow cms to generate relative pages (Closed) Base URL: https://hg.adblockplus.org/cms/
Patch Set: Address comments on PS1, rearrange test files Created Nov. 6, 2018, 3:28 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/test_dynamic_server.py
===================================================================
--- a/tests/test_dynamic_server.py
+++ b/tests/test_dynamic_server.py
@@ -32,6 +32,8 @@
@pytest.mark.slowtest
def test_dynamic_werkzeug_good_page(dynamic_server_werkzeug):
filename, expected_output = dynamic_expected_outputs[0]
+ filename = os.path.join(os.path.split(os.path.split(filename)[0])[0],
+ os.path.split(filename)[1])
response = urllib2.urlopen(dynamic_server_werkzeug + filename)
assert expected_output in response.read().strip()
@@ -49,6 +51,8 @@
@pytest.mark.slowtest
def test_dynamic_builtins_good_page(dynamic_server_builtins):
filename, expected_output = dynamic_expected_outputs[0]
+ filename = os.path.join(os.path.split(os.path.split(filename)[0])[0],
+ os.path.split(filename)[1])
response = urllib2.urlopen(dynamic_server_builtins + filename)
assert expected_output in response.read().strip()

Powered by Google App Engine
This is Rietveld