Skip to content

Commit 6649bc6

Browse files
committed
Rename get_decision --> is_publication_approved
1 parent df0ea0f commit 6649bc6

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/hermes/commands/curate/accept.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AcceptCuratePlugin(BaseCuratePlugin):
1919
also copies the metadata produced in the process step to the "curate" directory.
2020
"""
2121

22-
def get_decision(self):
22+
def is_publication_approved(self):
2323
"""Simulate positive curation result."""
2424
return True
2525

src/hermes/commands/curate/base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ def __call__(self, command: HermesCommand) -> None:
3838
"""Entry point of the callable.
3939
4040
This method runs the main logic of the plugin. It calls the other methods of the
41-
object in the correct order. Depending on the result of ``get_decision`` the
42-
corresponding ``process_decision_*()`` method is called, based on the curation
43-
decision.
41+
object in the correct order. Depending on the result of
42+
``is_publication_approved`` the corresponding ``process_decision_*()`` method is
43+
called, based on the curation decision.
4444
"""
4545
self.prepare()
4646
self.validate()
4747
self.create_report()
48-
if self.get_decision():
48+
if self.is_publication_approved():
4949
self.process_decision_positive()
5050
else:
5151
self.process_decision_negative()
@@ -73,7 +73,7 @@ def create_report(self):
7373
"""
7474
pass
7575

76-
def get_decision(self) -> bool:
76+
def is_publication_approved(self) -> bool:
7777
"""Return the publication decision made through the curation process.
7878
7979
If publication is allowed, this method must return ``True``. By default,

0 commit comments

Comments
 (0)