def test_anonymous_user(self): data = { "bibcode": ["2018EPJWC.18612003D"], "maxauthor": 0, "numyears": 4 } r = anonymous_user.post('author-affiliation/search', json=data) self.assertEqual(r.status_code, 401)
def test_anonymous_user(self): data = { "reference": [ "Damon 2018, European Physical Journal Web of Conferences, 186, 12003" ] } r = anonymous_user.post('/reference/text', json=data) self.assertEqual(r.status_code, 401)
def test_anonymous_user(self): # Get the author network r = anonymous_user.get('/vis/author-network', params=params) # method not allowed self.assertEqual(r.status_code, 405) r = anonymous_user.post('/vis/author-network', data=params) self.assertEqual(r.status_code, 401)
def test_anonymous_user(self): data = { "bibcode": ["2018EPJWC.18612003D"], "sort": "date desc, bibcode desc", "maxauthor": 2, "authorcutoff": 10, "keyformat": "%1H:%Y" } r = anonymous_user.post('/export/bibtex', json=data) self.assertEqual(r.status_code, 401)
def test_anonymous_user(self): # Request all metrics for two existing bibcodes r = anonymous_user.post('/citation_helper', json={'bibcodes': bibcodes}) # We should get a 401 status self.assertEqual(r.status_code, 401)
def test_anonymous_user(self): data = {"reader": "0000000000000000"} r = anonymous_user.post('/oracle/readhist', json=data) self.assertEqual(r.status_code, 401)
def test_anonymous_user(self): # Get the word cloud r = anonymous_user.post('/vis/word-cloud', json={'query': [json.dumps(params)]}) # This should get a 401 back self.assertEqual(r.status_code, 401)
def test_anonymous_user(self): # Try to get the paper network r = anonymous_user.post('/vis/paper-network', data=params) # We should get a 401 back self.assertEqual(r.status_code, 401)