Skip to content

Commit

Permalink
tests: updates test for compliance after changes
Browse files Browse the repository at this point in the history
Signed-off-by: pamfilos <[email protected]>
  • Loading branch information
pamfilos committed Mar 21, 2024
1 parent 16af730 commit 936bcd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion scoap3/articles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def is_compliant(self):
]
pub_info = self.article.publication_info.all()
_check_arxiv_category = True
if len(pub_info) and not (pub_info[0].journal_title in JOURNALS_SKIP_COMPLIANCE):
if len(pub_info) and not (
pub_info[0].journal_title in JOURNALS_SKIP_COMPLIANCE
):
_check_arxiv_category = self.check_arxiv_category

return all(
Expand Down
2 changes: 2 additions & 0 deletions scoap3/articles/tests/test_article_compliance_csv_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def test_export_as_csv(self):
"Check File Formats",
"Check Arxiv Category",
"Check Article Type",
"Check DOI Registration",
],
)
self.assertEqual(
Expand All @@ -68,5 +69,6 @@ def test_export_as_csv(self):
"False",
"False",
"False",
"",
],
)
2 changes: 1 addition & 1 deletion scoap3/templates/admin/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ <h1>
</h1>
{% endblock %}

{% block nav-global %}{% endblock %}
{% block nav-global %}{% endblock %}

0 comments on commit 936bcd6

Please sign in to comment.