Skip to content

Commit b067cda

Browse files
committed
extending tests
1 parent 405181a commit b067cda

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

qiita_db/test/test_user.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ def setUp(self):
7272
'pass_reset_code': None,
7373
'pass_reset_timestamp': None,
7474
'user_verify_code': None,
75-
'receive_processing_job_emails': True
75+
'receive_processing_job_emails': True,
76+
'social_orcid': None,
77+
'social_researchgate': None,
78+
'social_googlescholar': None
7679
}
7780

7881
def tearDown(self):
@@ -125,7 +128,10 @@ def test_create_user(self):
125128
'address': None,
126129
'user_level_id': 5,
127130
'receive_processing_job_emails': False,
128-
'email': '[email protected]'}
131+
'email': '[email protected]',
132+
'social_orcid': None,
133+
'social_researchgate': None,
134+
'social_googlescholar': None}
129135
self._check_correct_info(obs, exp)
130136

131137
# Make sure new system messages are linked to user
@@ -162,7 +168,10 @@ def test_create_user_info(self):
162168
'user_verify_code': '',
163169
'user_level_id': 5,
164170
'receive_processing_job_emails': True,
165-
'email': '[email protected]'}
171+
'email': '[email protected]',
172+
'social_orcid': None,
173+
'social_researchgate': None,
174+
'social_googlescholar': None}
166175
self._check_correct_info(obs, exp)
167176

168177
def test_create_user_column_not_allowed(self):
@@ -229,7 +238,10 @@ def test_get_info(self):
229238
'pass_reset_timestamp': None,
230239
'user_verify_code': None,
231240
'receive_processing_job_emails': False,
232-
'phone': '222-444-6789'
241+
'phone': '222-444-6789',
242+
'social_orcid': None,
243+
'social_researchgate': None,
244+
'social_googlescholar': None
233245
}
234246
self.assertEqual(self.user.info, expinfo)
235247

qiita_db/test/test_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def test_get_table_cols(self):
9292
obs = qdb.util.get_table_cols("qiita_user")
9393
exp = {"email", "user_level_id", "password", "name", "affiliation",
9494
"address", "phone", "user_verify_code", "pass_reset_code",
95-
"pass_reset_timestamp", "receive_processing_job_emails"}
95+
"pass_reset_timestamp", "receive_processing_job_emails",
96+
"social_orcid", "social_researchgate", "social_googlescholar"}
9697
self.assertEqual(set(obs), exp)
9798

9899
def test_exists_table(self):

0 commit comments

Comments
 (0)