Commit 65dac4f
committed
test: align fixtures with rebased anonymous-suggestion model and class-detail query
Two pre-existing tests on upstream/main exercise code paths that this
PR's commits modify. After rebasing onto upstream/main, fixtures need
to reflect the new model fields and an additional db.execute call:
- _make_session() in test_suggestion_service.py: explicitly default
is_anonymous=False, submitter_name=None, submitter_email=None so
MagicMock(spec=SuggestionSession) doesn't auto-generate truthy
MagicMock attrs that drive the new anonymous branch in _build_summary.
- TestGetClassDetail / TestGetClassDetailAnnotations: add a 7th
side_effect entry for the new IndexedLabel query introduced by
"fix: include translations and synonyms in index path class detail".
Also drops a now-unused import in test_auth_disabled.py flagged by ruff.1 parent 2392683 commit 65dac4f
3 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
465 | 467 | | |
466 | 468 | | |
467 | 469 | | |
| |||
470 | 472 | | |
471 | 473 | | |
472 | 474 | | |
| 475 | + | |
473 | 476 | | |
474 | 477 | | |
475 | 478 | | |
| |||
539 | 542 | | |
540 | 543 | | |
541 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
542 | 549 | | |
543 | 550 | | |
544 | 551 | | |
| |||
548 | 555 | | |
549 | 556 | | |
550 | 557 | | |
| 558 | + | |
551 | 559 | | |
552 | 560 | | |
553 | 561 | | |
| |||
883 | 891 | | |
884 | 892 | | |
885 | 893 | | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
886 | 898 | | |
887 | 899 | | |
888 | 900 | | |
889 | 901 | | |
890 | 902 | | |
891 | 903 | | |
892 | 904 | | |
| 905 | + | |
893 | 906 | | |
894 | 907 | | |
895 | 908 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
0 commit comments