oioioi.newsfeed.tests

Module Contents

Classes

TestNewsfeedVisibility

Similar to TransactionTestCase, but use transaction.atomic() to achieve

TestNewsfeedPermissions

Similar to TransactionTestCase, but use transaction.atomic() to achieve

TestNewsfeedOptions

Similar to TransactionTestCase, but use transaction.atomic() to achieve

class oioioi.newsfeed.tests.TestNewsfeedVisibility(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'newsfeed'][source]
test_newsfeed_visibility()[source]
test_newsfeed_options_visibility()[source]
class oioioi.newsfeed.tests.TestNewsfeedPermissions(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'newsfeed'][source]
test_add_permissions()[source]
test_edit_permissions()[source]
test_delete_permissions()[source]
class oioioi.newsfeed.tests.TestNewsfeedOptions(methodName='runTest')[source]

Bases: oioioi.base.tests.TestCase

Similar to TransactionTestCase, but use transaction.atomic() to achieve test isolation.

In most situations, TestCase should be preferred to TransactionTestCase as it allows faster execution. However, there are some situations where using TransactionTestCase might be necessary (e.g. testing some transactional behavior).

On database backends with no transaction support, TestCase behaves as TransactionTestCase.

fixtures = ['test_users', 'newsfeed'][source]
_assert_redirect_to_newsfeed(response)[source]
test_news_add()[source]
test_news_edit()[source]
test_news_delete()[source]