review.coding.next_stage(root, directory)
The stage whose page is the next one.
It is own until answers-own.toml exists, then final until answers-final.toml does. Only the existence of the files is looked at.
Parameters
| root |
Path |
The project root. |
required |
| directory |
Path | str |
The review directory. |
required |
Returns
| str |
str |
own or final; "" if both are taken in. |
Raises
|
ConfigurationError |
If the directory holds no coding.toml. |
Examples
from babregen.review.coding import next_stage
print(next_stage.__name__)