This repository was archived by the owner on Mar 15, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 138
138
{{ form.bio.errors }}
139
139
</ div >
140
140
</ fieldset > {# /.profile-detail #}
141
+ {# TODO(apps): Revert this when we have collections for apps. #}
142
+ {% if not webapp %}
141
143
< fieldset id ="profile-misc " class ="c ">
142
144
< legend > {{ _('Miscellaneous') }}</ legend >
143
145
< p class ="sub_legend ">
162
164
</ li >
163
165
</ ul >
164
166
</ fieldset >
167
+ {% endif %}
165
168
166
169
< fieldset id ="acct-notify ">
167
170
< legend > {{ _('Notifications') }}</ legend >
Original file line number Diff line number Diff line change @@ -231,6 +231,21 @@ def test_edit_notifications_non_dev_error(self):
231
231
def test_edit_app_notifications_non_dev_error (self ):
232
232
self ._test_edit_notifications_non_dev_error ()
233
233
234
+ def test_collections_toggles (self ):
235
+ r = self .client .get (self .url )
236
+ eq_ (r .status_code , 200 )
237
+ doc = pq (r .content )
238
+ eq_ (doc ('#profile-misc' ).length , 1 ,
239
+ 'Collections options should be visible.' )
240
+
241
+ @patch .object (settings , 'APP_PREVIEW' , True )
242
+ def test_apps_collections_toggles (self ):
243
+ r = self .client .get (self .url )
244
+ eq_ (r .status_code , 200 )
245
+ doc = pq (r .content )
246
+ eq_ (doc ('#profile-misc' ).length , 0 ,
247
+ 'Collections options should not be visible.' )
248
+
234
249
235
250
class TestEditAdmin (UserViewBase ):
236
251
fixtures = ['base/users' ]
You can’t perform that action at this time.
0 commit comments