| |
@@ -15,15 +15,16 @@
|
| |
response = self.check_url('/ralph/%i/json' % widget.idx, user)
|
| |
data = json.loads(response.get_data(as_text=True))
|
| |
self.assertDictEqual(data['data'], {
|
| |
- u'fedmsgs': 83854,
|
| |
- u'fedmsgs_text': u'83,854',
|
| |
- u'subscribers': [],
|
| |
- u'subscribed_to': [],
|
| |
- u'subscribers_text': u'0',
|
| |
- u'subscribed_text': u'0',
|
| |
- u'username': u'ralph',
|
| |
- u'hub_subscribe_url': u'/api/hub/ralph/subscribe',
|
| |
- u'hub_unsubscribe_url': u'/api/hub/ralph/unsubscribe',
|
| |
+ 'fedmsgs': 83854,
|
| |
+ 'fedmsgs_text': '83,854',
|
| |
+ 'subscribers': [],
|
| |
+ 'subscribed_to': [],
|
| |
+ 'subscribers_text': '0',
|
| |
+ 'subscribed_text': '0',
|
| |
+ 'username': 'ralph',
|
| |
+ 'hub_subscribe_url': '/api/hub/ralph/subscribe',
|
| |
+ 'hub_unsubscribe_url': '/api/hub/ralph/unsubscribe',
|
| |
+ 'edit_mode': False,
|
| |
})
|
| |
|
| |
def test_view_authz(self):
|
| |
This fixes the unit tests broken by my last commit.
The second commit is a small logical reorg in the React components, because only top-level elements should instantiate IntlProvider (not reusable components).