Initial support for user general remarks
This commit is contained in:
1 parent
a38c1ff4b3
commit
2c9dc65640
16 files changed
+606
-20
No files matched your search
@@ -12,6 +12,7 @@ from copienator import EvaluationWorkspace, ExitCode, atomic_write_json, configu
|
||||
from copienator.annotation_data import AnnotationLoadResult
|
||||
from copienator.annotation_read_cache import STATE_FILE
|
||||
from copienator.custom_remarks import set_remark
|
||||
from copienator.general_remarks import set_remarks, IMAGE_FILENAME
|
||||
from copienator.commands import annotating, reading_annotations as standard
|
||||
from copienator.commands import reading_grouped_annotations as grouped
|
||||
|
||||
@@ -103,6 +104,19 @@ class IncrementalAnnotationReadsTests(unittest.TestCase):
|
||||
self.assertEqual(compose.call_args.args[2]["feedback"], [])
|
||||
run(0)
|
||||
|
||||
with patch.object(annotating, "render_real_latex_text",
|
||||
return_value=Image.new("RGB", (100, 30), "white")):
|
||||
set_remarks(root, "1", ["First", "Second"])
|
||||
run(1)
|
||||
run(0)
|
||||
set_remarks(root, "1", ["Second", "First"])
|
||||
run(1)
|
||||
(root / mode / "Copie01" / IMAGE_FILENAME).unlink()
|
||||
run(1)
|
||||
set_remarks(root, "1", [])
|
||||
run(1)
|
||||
run(0)
|
||||
|
||||
# Per-copy sources and correction data invalidate only that copy.
|
||||
(root / "Copies" / "01.pdf").write_bytes(b"replaced answer PDF")
|
||||
run(1)
|
||||
|
||||
Reference in new issue
Block a user