Mercurial > p > roundup > code
comparison test/test_liveserver.py @ 8242:393dfc750d8b
test: missed change in error wording.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 30 Dec 2024 20:30:26 -0500 |
| parents | 741ea8a86012 |
| children | f6923d2ba9a5 |
comparison
equal
deleted
inserted
replaced
| 8241:741ea8a86012 | 8242:393dfc750d8b |
|---|---|
| 362 session, _response = self.create_login_session() | 362 session, _response = self.create_login_session() |
| 363 f = session.get(self.url_base()+'/issue?' + current_user_query) | 363 f = session.get(self.url_base()+'/issue?' + current_user_query) |
| 364 | 364 |
| 365 # verify the query has run by looking for the query name | 365 # verify the query has run by looking for the query name |
| 366 # print(f.text) | 366 # print(f.text) |
| 367 self.assertIn('Error when searching issue by creator using: ' | 367 self.assertIn('There was an error searching issue by creator using: ' |
| 368 '[-2]. The operator -2 (not) at position 1 has ' | 368 '[-2]. The operator -2 (not) at position 1 has ' |
| 369 'too few arguments.', | 369 'too few arguments.', |
| 370 f.text) | 370 f.text) |
| 371 self.assertEqual(f.status_code, 400) | |
| 371 | 372 |
| 372 def test_broken_multiink_query(self): | 373 def test_broken_multiink_query(self): |
| 373 # query multilink item | 374 # query multilink item |
| 374 current_user_query = ( | 375 current_user_query = ( |
| 375 "@columns=title,id,activity,status,assignedto" | 376 "@columns=title,id,activity,status,assignedto" |
| 379 session, _response = self.create_login_session() | 380 session, _response = self.create_login_session() |
| 380 f = session.get(self.url_base()+'/issue?' + current_user_query) | 381 f = session.get(self.url_base()+'/issue?' + current_user_query) |
| 381 | 382 |
| 382 # verify the query has run by looking for the query name | 383 # verify the query has run by looking for the query name |
| 383 print(f.text) | 384 print(f.text) |
| 384 self.assertIn('Error when searching issue by keyword using: ' | 385 self.assertIn('There was an error searching issue by keyword using: ' |
| 385 '[-3]. The operator -3 (and) at position 1 has ' | 386 '[-3]. The operator -3 (and) at position 1 has ' |
| 386 'too few arguments.', | 387 'too few arguments.', |
| 387 f.text) | 388 f.text) |
| 389 self.assertEqual(f.status_code, 400) | |
| 388 | 390 |
| 389 def test_start_page(self): | 391 def test_start_page(self): |
| 390 """ simple test that verifies that the server can serve a start page. | 392 """ simple test that verifies that the server can serve a start page. |
| 391 """ | 393 """ |
| 392 f = requests.get(self.url_base()) | 394 f = requests.get(self.url_base()) |
