本文整理匯總了Python中erudit.test.factories.JournalFactory.create_with_issue方法的典型用法代碼示例。如果您正苦於以下問題:Python JournalFactory.create_with_issue方法的具體用法?Python JournalFactory.create_with_issue怎麽用?Python JournalFactory.create_with_issue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類erudit.test.factories.JournalFactory
的用法示例。
在下文中一共展示了JournalFactory.create_with_issue方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_journals_with_published_issues_are_not_upcoming
# 需要導入模塊: from erudit.test.factories import JournalFactory [as 別名]
# 或者: from erudit.test.factories.JournalFactory import create_with_issue [as 別名]
def test_journals_with_published_issues_are_not_upcoming(self):
# Setup
JournalFactory.create_with_issue()
# Run
journals = Journal.upcoming_objects.all()
# Check
assert list(journals) == []
示例2: test_journals_with_published_and_unpublished_issues_are_not_upcoming
# 需要導入模塊: from erudit.test.factories import JournalFactory [as 別名]
# 或者: from erudit.test.factories.JournalFactory import create_with_issue [as 別名]
def test_journals_with_published_and_unpublished_issues_are_not_upcoming(self):
# Setup
journal_1 = JournalFactory.create_with_issue()
IssueFactory(journal=journal_1, is_published=False)
# Test
assert list(Journal.upcoming_objects.all()) == []