Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(proposal): 404 error for co-speaker #1188

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(proposals/test)-add test for additional speaker
Add test for additional speaker under uneditable condition.
  • Loading branch information
SivanYeh committed May 20, 2024
commit 6a6c2d5017e968c4afca2b04f6d3d954dd4d4733
8 changes: 7 additions & 1 deletion src/proposals/tests/forms/test_additional_speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,13 @@ def test_additional_speaker_update_form_no_instance(form_class):
'Additional speaker update form must be initialized with an instance.'
)


def test_additional_speaker_update_form_uneditable(additional_speaker):
form = AdditionalSpeakerSetStatusForm(additional_speaker)
"""
Have to add something determine whether this form is editable
"""
assert not form.is_valid()

def test_additional_speaker_cancel_form(additional_speaker):
form = AdditionalSpeakerCancelForm(instance=additional_speaker)
assert list(form.fields) == ['cancelled']
Expand Down