Skip to content

Commit c0d19ca

Browse files
committed
WebSearch: adapt test cases for citation summary
* Adapts test cases for citation summary links that do not have `rm=citation` argument anymore, following recent commit 12dfdc6. (addresses #990) * Cherry-picked from a1c394f.
1 parent 6ff36a4 commit c0d19ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/websearch/lib/websearch_regression_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,23 +1447,23 @@ def test_ellis_citation_summary(self):
14471447
self.assertEqual([],
14481448
test_web_page_content(CFG_SITE_URL + '/search?p=ellis&of=hcs',
14491449
expected_text="Less known papers (1-9)",
1450-
expected_link_target=CFG_SITE_URL+"/search?p=ellis%20AND%20cited%3A1-%3E9&rm=citation",
1450+
expected_link_target=CFG_SITE_URL+"/search?p=ellis%20AND%20cited%3A1-%3E9",
14511451
expected_link_label='1'))
14521452

14531453
def test_ellis_not_quark_citation_summary_advanced(self):
14541454
"""websearch - ellis and not quark, citation summary format advanced"""
14551455
self.assertEqual([],
14561456
test_web_page_content(CFG_SITE_URL + '/search?ln=en&as=1&m1=a&p1=ellis&f1=author&op1=n&m2=a&p2=quark&f2=&op2=a&m3=a&p3=&f3=&action_search=Search&sf=&so=a&rm=&rg=10&sc=1&of=hcs',
14571457
expected_text="Less known papers (1-9)",
1458-
expected_link_target=CFG_SITE_URL+'/search?p=author%3Aellis%20and%20not%20quark%20AND%20cited%3A1-%3E9&rm=citation',
1458+
expected_link_target=CFG_SITE_URL+'/search?p=author%3Aellis%20and%20not%20quark%20AND%20cited%3A1-%3E9',
14591459
expected_link_label='1'))
14601460

14611461
def test_ellis_not_quark_citation_summary_regular(self):
14621462
"""websearch - ellis and not quark, citation summary format advanced"""
14631463
self.assertEqual([],
14641464
test_web_page_content(CFG_SITE_URL + '/search?ln=en&p=author%3Aellis+and+not+quark&f=&action_search=Search&sf=&so=d&rm=&rg=10&sc=0&of=hcs',
14651465
expected_text="Less known papers (1-9)",
1466-
expected_link_target=CFG_SITE_URL+'/search?p=author%3Aellis%20and%20not%20quark%20AND%20cited%3A1-%3E9&rm=citation',
1466+
expected_link_target=CFG_SITE_URL+'/search?p=author%3Aellis%20and%20not%20quark%20AND%20cited%3A1-%3E9',
14671467
expected_link_label='1'))
14681468

14691469

0 commit comments

Comments
 (0)