Skip to content

Commit

Permalink
Merge branch 'hotfix/2024-05-02_fix_outdated_selenium_test'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-Eardley committed May 2, 2024
2 parents 505b97c + 6cf1f2d commit d014aa9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doajtest/seleniumtest/test_article_xml_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from doajtest.selenium_helpers import SeleniumTestCase
from portality import models, dao
from portality.constants import FileUploadStatus
from portality.ui.messages import Messages

HISTORY_ROW_PROCESSING_FAILED = 'processing failed'
XML_FORMAT_DOAJ = 'doaj'
Expand Down Expand Up @@ -92,10 +93,10 @@ class ArticleXmlUploadDoajXmlFailSTC(ArticleXmlUploadCommonSTC):
'Unable to parse XML file'),
# case "Upload a file containing 2 identical ISSNs"
(article_doajxml.IDENTICAL_ISSNS,
'', 'failed The Print and Online ISSNs supplied are identical'),
'', Messages.EXCEPTION_IDENTICAL_PISSN_AND_EISSN),
# case "Upload a file without ISSN"
(article_doajxml.NO_ISSN,
'', 'Neither Print ISSN nor Online ISSN has been supplied'),
'', Messages.EXCEPTION_NO_ISSNS),
])
def test_upload_fail(self, file_path, err_msg, expected_note):
""" cases about upload article failed with error message """
Expand Down

0 comments on commit d014aa9

Please sign in to comment.