|
a/Allura/allura/tests/functional/test_root.py |
|
b/Allura/allura/tests/functional/test_root.py |
|
... |
|
... |
72 |
with push_config(config, **{'activitystream.enabled': 'true'}):
|
72 |
with push_config(config, **{'activitystream.enabled': 'true'}):
|
73 |
resp = self.app.get('/p/test2/')
|
73 |
resp = self.app.get('/p/test2/')
|
74 |
assert_equal(resp.status_int, 302)
|
74 |
assert_equal(resp.status_int, 302)
|
75 |
assert_equal(resp.location, 'http://localhost/p/test2/activity/')
|
75 |
assert_equal(resp.location, 'http://localhost/p/test2/activity/')
|
76 |
|
76 |
|
|
|
77 |
with push_config(config, **{'activitystream.enabled': 'false'}):
|
|
|
78 |
self.app.cookies['activitystream.enabled'] = 'true'
|
|
|
79 |
resp = self.app.get('/p/test2/')
|
|
|
80 |
assert_equal(resp.status_int, 302)
|
|
|
81 |
assert_equal(resp.location, 'http://localhost/p/test2/activity/')
|
|
|
82 |
|
77 |
def test_neighborhood_home(self):
|
83 |
def test_neighborhood_home(self):
|
78 |
# Install home app
|
84 |
# Install home app
|
79 |
nb = M.Neighborhood.query.get(name='Adobe')
|
85 |
nb = M.Neighborhood.query.get(name='Adobe')
|
80 |
p = nb.neighborhood_project
|
86 |
p = nb.neighborhood_project
|
81 |
p.install_app('home', 'home', 'Home', ordinal=0)
|
87 |
p.install_app('home', 'home', 'Home', ordinal=0)
|