-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: point menu item for editoral stream to rswg documents (#5206)
* fix: connect the menu item for the editoral stream to the rswg documents page. * chore: repair merge damage * fix: address review by shortcircuiting redirects
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
|
||
import debug # pyflakes:ignore | ||
|
||
from ietf.doc.factories import DocumentFactory, WgDraftFactory | ||
from ietf.doc.factories import DocumentFactory, WgDraftFactory, EditorialDraftFactory | ||
from ietf.doc.models import DocEvent, RelatedDocument, Document | ||
from ietf.group.models import Role, Group | ||
from ietf.group.utils import get_group_role_emails, get_child_group_role_emails, get_group_ad_emails | ||
|
@@ -41,6 +41,11 @@ def test_stream_documents(self): | |
self.assertEqual(r.status_code, 200) | ||
self.assertContains(r, draft.name) | ||
|
||
EditorialDraftFactory() # Quick way to ensure RSWG exists. | ||
r = self.client.get(urlreverse("ietf.group.views.stream_documents", kwargs=dict(acronym="editorial"))) | ||
self.assertRedirects(r, expected_url=urlreverse('ietf.group.views.group_documents',kwargs={"acronym":"rswg"})) | ||
|
||
|
||
def test_stream_edit(self): | ||
EmailFactory(address="[email protected]") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters